public class BlockEntityMessage extends AbstractMessage<BlockEntityMessage>
| Constructor and Description |
|---|
BlockEntityMessage() |
BlockEntityMessage(BlockEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromBytes(io.netty.buffer.ByteBuf buf) |
void |
onClientReceived(net.minecraft.client.Minecraft client,
BlockEntityMessage message,
net.minecraft.entity.player.EntityPlayer player,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext messageContext)
Executes when the message is received on CLIENT side.
|
void |
onServerReceived(net.minecraft.server.MinecraftServer server,
BlockEntityMessage message,
net.minecraft.entity.player.EntityPlayer player,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext messageContext)
Executes when the message is received on SERVER side.
|
void |
toBytes(io.netty.buffer.ByteBuf buf) |
onMessage, registerOnSidepublic BlockEntityMessage()
public BlockEntityMessage(BlockEntity entity)
public void onClientReceived(net.minecraft.client.Minecraft client,
BlockEntityMessage message,
net.minecraft.entity.player.EntityPlayer player,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext messageContext)
AbstractMessageonClientReceived in class AbstractMessage<BlockEntityMessage>client - the minecraft client instance.message - The message instance with all variables.player - The client player entity.messageContext - the message context.public void onServerReceived(net.minecraft.server.MinecraftServer server,
BlockEntityMessage message,
net.minecraft.entity.player.EntityPlayer player,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext messageContext)
AbstractMessageonServerReceived in class AbstractMessage<BlockEntityMessage>server - the minecraft server instance.message - The message instance with all variables.player - The player who sent the message to the server.messageContext - the message context.public void fromBytes(io.netty.buffer.ByteBuf buf)
public void toBytes(io.netty.buffer.ByteBuf buf)