public class StructureCache
extends java.lang.Object
Constructor and Description |
---|
StructureCache() |
Modifier and Type | Method and Description |
---|---|
static StructureModifier<java.lang.Object> |
getStructure(java.lang.Class<?> packetType)
Retrieve a cached structure modifier given a packet type.
|
static StructureModifier<java.lang.Object> |
getStructure(java.lang.Class<?> packetType,
boolean compile)
Retrieve a cached structure modifier given a packet type.
|
static StructureModifier<java.lang.Object> |
getStructure(int legacyId)
Deprecated.
|
static StructureModifier<java.lang.Object> |
getStructure(int legacyId,
boolean compile)
Deprecated.
|
static StructureModifier<java.lang.Object> |
getStructure(PacketType type)
Retrieve a cached structure modifier for the given packet type.
|
static StructureModifier<java.lang.Object> |
getStructure(PacketType type,
boolean compile)
Retrieve a cached structure modifier for the given packet type.
|
static java.lang.Object |
newPacket(int legacyId)
Deprecated.
|
static java.lang.Object |
newPacket(PacketType type)
Creates an empty Minecraft packet of the given type.
|
@Deprecated public static java.lang.Object newPacket(int legacyId)
Decreated: Use newPacket(PacketType)
instead.
legacyId
- - legacy (1.6.4) packet id.public static java.lang.Object newPacket(PacketType type)
type
- - packet type.@Deprecated public static StructureModifier<java.lang.Object> getStructure(int legacyId)
Deprecated: Use getStructure(PacketType)
instead.
legacyId
- - the legacy (1.6.4) packet ID.public static StructureModifier<java.lang.Object> getStructure(PacketType type)
type
- - packet type.public static StructureModifier<java.lang.Object> getStructure(java.lang.Class<?> packetType)
packetType
- - packet type.public static StructureModifier<java.lang.Object> getStructure(java.lang.Class<?> packetType, boolean compile)
packetType
- - packet type.compile
- - whether or not to asynchronously compile the structure modifier.@Deprecated public static StructureModifier<java.lang.Object> getStructure(int legacyId, boolean compile)
Deprecated: Use getStructure(PacketType, boolean)
instead.
legacyId
- - the legacy (1.6.4) packet ID.compile
- - whether or not to asynchronously compile the structure modifier.public static StructureModifier<java.lang.Object> getStructure(PacketType type, boolean compile)
type
- - packet type.compile
- - whether or not to asynchronously compile the structure modifier.