Package net.openosrs.api.hooks
Class HooksFile
- java.lang.Object
-
- net.openosrs.api.hooks.HooksFile
-
public class HooksFile extends java.lang.ObjectTyped model ofhooks.json(format openosrs-hooks/2), as emitted by the revision generator. One file per revision; every structural fact inside is verified offline before emission and re-verified against the loaded client at bind time (PacketDispatcher).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHooksFile.BufferMethodDefstatic classHooksFile.Familiesstatic classHooksFile.LayoutCoveragestatic classHooksFile.PacketDefstatic classHooksFile.SendPathstatic classHooksFile.ServerPacketDefstatic classHooksFile.TraceMetadatastatic classHooksFile.WriteOp
-
Constructor Summary
Constructors Constructor Description HooksFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.Map<java.lang.String,HooksFile.BufferMethodDef>getBufferMethods()Buffer read/write methods classified by byte-width invariants.intgetClassCount()HooksFile.FamiliesgetFamilies()java.lang.StringgetFormat()java.lang.StringgetJarSha256()HooksFile.LayoutCoveragegetLayoutCoverage()Explicit trusted/quarantined/no-layout partition emitted by the dumper.intgetPacketCount()java.util.List<HooksFile.PacketDef>getPackets()java.lang.IntegergetRevision()HooksFile.SendPathgetSendPath()intgetServerPacketCount()java.util.List<HooksFile.ServerPacketDef>getServerPackets()intgetTotalClassCount()HooksFile.TraceMetadatagetTrace()Per-build obfuscation constants used by provenance trace decoding.inthashCode()static HooksFileload()HooksFile.PacketDefpacketByField(java.lang.String fieldName)Packet definition owning the given obf field name (e.g.HooksFile.PacketDefpacketById(int id)Packet definition by opcode.HooksFile.PacketDefpacketByName(java.lang.String name)Packet definition by seeded semantic name (e.g.voidsetBufferMethods(java.util.Map<java.lang.String,HooksFile.BufferMethodDef> bufferMethods)Buffer read/write methods classified by byte-width invariants.voidsetClassCount(int classCount)voidsetFamilies(HooksFile.Families families)voidsetFormat(java.lang.String format)voidsetJarSha256(java.lang.String jarSha256)voidsetLayoutCoverage(HooksFile.LayoutCoverage layoutCoverage)Explicit trusted/quarantined/no-layout partition emitted by the dumper.voidsetPacketCount(int packetCount)voidsetPackets(java.util.List<HooksFile.PacketDef> packets)voidsetRevision(java.lang.Integer revision)voidsetSendPath(HooksFile.SendPath sendPath)voidsetServerPacketCount(int serverPacketCount)voidsetServerPackets(java.util.List<HooksFile.ServerPacketDef> serverPackets)voidsetTotalClassCount(int totalClassCount)voidsetTrace(HooksFile.TraceMetadata trace)Per-build obfuscation constants used by provenance trace decoding.java.lang.StringtoString()voidvalidate()
-
-
-
Method Detail
-
load
public static HooksFile load()
-
packetByField
public HooksFile.PacketDef packetByField(java.lang.String fieldName)
Packet definition owning the given obf field name (e.g. "af").
-
packetByName
public HooksFile.PacketDef packetByName(java.lang.String name)
Packet definition by seeded semantic name (e.g. "RESUME_COUNTDIALOG").
-
packetById
public HooksFile.PacketDef packetById(int id)
Packet definition by opcode.
-
validate
public void validate()
-
getFormat
public java.lang.String getFormat()
-
getRevision
public java.lang.Integer getRevision()
-
getJarSha256
public java.lang.String getJarSha256()
-
getClassCount
public int getClassCount()
-
getTotalClassCount
public int getTotalClassCount()
-
getFamilies
public HooksFile.Families getFamilies()
-
getSendPath
public HooksFile.SendPath getSendPath()
-
getBufferMethods
public java.util.Map<java.lang.String,HooksFile.BufferMethodDef> getBufferMethods()
Buffer read/write methods classified by byte-width invariants.
-
getPacketCount
public int getPacketCount()
-
getServerPacketCount
public int getServerPacketCount()
-
getLayoutCoverage
public HooksFile.LayoutCoverage getLayoutCoverage()
Explicit trusted/quarantined/no-layout partition emitted by the dumper.
-
getTrace
public HooksFile.TraceMetadata getTrace()
Per-build obfuscation constants used by provenance trace decoding.
-
getPackets
public java.util.List<HooksFile.PacketDef> getPackets()
-
getServerPackets
public java.util.List<HooksFile.ServerPacketDef> getServerPackets()
-
setFormat
public void setFormat(java.lang.String format)
-
setRevision
public void setRevision(java.lang.Integer revision)
-
setJarSha256
public void setJarSha256(java.lang.String jarSha256)
-
setClassCount
public void setClassCount(int classCount)
-
setTotalClassCount
public void setTotalClassCount(int totalClassCount)
-
setFamilies
public void setFamilies(HooksFile.Families families)
-
setSendPath
public void setSendPath(HooksFile.SendPath sendPath)
-
setBufferMethods
public void setBufferMethods(java.util.Map<java.lang.String,HooksFile.BufferMethodDef> bufferMethods)
Buffer read/write methods classified by byte-width invariants.
-
setPacketCount
public void setPacketCount(int packetCount)
-
setServerPacketCount
public void setServerPacketCount(int serverPacketCount)
-
setLayoutCoverage
public void setLayoutCoverage(HooksFile.LayoutCoverage layoutCoverage)
Explicit trusted/quarantined/no-layout partition emitted by the dumper.
-
setTrace
public void setTrace(HooksFile.TraceMetadata trace)
Per-build obfuscation constants used by provenance trace decoding.
-
setPackets
public void setPackets(java.util.List<HooksFile.PacketDef> packets)
-
setServerPackets
public void setServerPackets(java.util.List<HooksFile.ServerPacketDef> serverPackets)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-