public class TileEntitySyncHandler extends DefaultSyncHandler<net.minecraft.tileentity.TileEntity,TileEntitySyncHandler.TESyncData>
| Modifier and Type | Class and Description |
|---|---|
static class |
TileEntitySyncHandler.TESyncData |
| Constructor and Description |
|---|
TileEntitySyncHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Gets the name of this
ISyncHandler. |
net.minecraft.tileentity.TileEntity |
getReceiver(net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx,
TileEntitySyncHandler.TESyncData data)
Gets the object to be synced on the receiving side.
|
TileEntitySyncHandler.TESyncData |
getSyncData(net.minecraft.tileentity.TileEntity caller)
Gets the
ISyncableData that holds the extra data to be sent. |
void |
send(net.minecraft.tileentity.TileEntity caller,
SyncerMessage.Packet<net.minecraft.tileentity.TileEntity,TileEntitySyncHandler.TESyncData> packet)
Sends the syncing packet.
|
addObjectData, getObjectData, getObjectDatapublic java.lang.String getName()
ISyncHandlerISyncHandler. That name needs to match the Syncable value for the class it's applied on.public net.minecraft.tileentity.TileEntity getReceiver(net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx,
TileEntitySyncHandler.TESyncData data)
ISyncHandlerctx - the ctxdata - the datapublic TileEntitySyncHandler.TESyncData getSyncData(net.minecraft.tileentity.TileEntity caller)
ISyncHandlerISyncableData that holds the extra data to be sent.ISyncableData.fromBytes(io.netty.buffer.ByteBuf)caller - the callerpublic void send(net.minecraft.tileentity.TileEntity caller,
SyncerMessage.Packet<net.minecraft.tileentity.TileEntity,TileEntitySyncHandler.TESyncData> packet)
ISyncHandlercaller - the callerpacket - the packet