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 id)
Retrieve a cached structure modifier for the given packet id.
|
static StructureModifier<java.lang.Object> |
getStructure(int id,
boolean compile)
Retrieve a cached structure modifier for the given packet id.
|
static java.lang.Object |
newPacket(int id)
Creates an empty Minecraft packet of the given ID.
|
public static java.lang.Object newPacket(int id)
id
- - packet ID.public static StructureModifier<java.lang.Object> getStructure(int id)
id
- - packet ID.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.public static StructureModifier<java.lang.Object> getStructure(int id, boolean compile)
id
- - packet ID.compile
- - whether or not to asynchronously compile the structure modifier.