public abstract class ModDimension extends ForgeRegistryEntry<ModDimension>
delegate| Constructor and Description |
|---|
ModDimension() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.function.Function<DimensionType,? extends Dimension> |
getFactory() |
void |
read(PacketBuffer buffer,
boolean network)
Deserialize any necessary data, this is called both when saving the world on the server.
|
void |
write(PacketBuffer buffer,
boolean network)
Serialize any necessary data, this is called both when saving the world on the server.
|
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic abstract java.util.function.Function<DimensionType,? extends Dimension> getFactory()
public void write(PacketBuffer buffer, boolean network)
buffer - The data buffer to write to.network - true when sent over the network, so you can only data needed by the client.public void read(PacketBuffer buffer, boolean network)
buffer - The data buffer to write to.network - true when sent over the network, so you can only data needed by the client.