public class StructureCache
extends java.lang.Object
Constructor and Description |
---|
StructureCache() |
Modifier and Type | Method and Description |
---|---|
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(int id, boolean compile)
id
- - packet ID.compile
- - whether or not to asynchronously compile the structure modifier.