public class AnimationMessage extends AbstractMessage<AnimationMessage>
| Constructor and Description |
|---|
AnimationMessage() |
AnimationMessage(int entityID,
int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromBytes(io.netty.buffer.ByteBuf byteBuf) |
void |
onClientReceived(net.minecraft.client.Minecraft client,
AnimationMessage 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,
AnimationMessage 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 byteBuf) |
onMessage, registerOnSidepublic AnimationMessage()
public AnimationMessage(int entityID,
int index)
public void onClientReceived(net.minecraft.client.Minecraft client,
AnimationMessage message,
net.minecraft.entity.player.EntityPlayer player,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext messageContext)
AbstractMessageonClientReceived in class AbstractMessage<AnimationMessage>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,
AnimationMessage message,
net.minecraft.entity.player.EntityPlayer player,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext messageContext)
AbstractMessageonServerReceived in class AbstractMessage<AnimationMessage>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 byteBuf)
public void toBytes(io.netty.buffer.ByteBuf byteBuf)