public class FartPacket extends PacketCodec
| Constructor and Description |
|---|
FartPacket()
Creates a packet with no content
|
FartPacket(net.minecraft.entity.player.EntityPlayer player)
Creates a FartPacket which contains the player data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionClient(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
Actions for client-side.
|
void |
actionServer(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayerMP player)
Actions for server-side.
|
boolean |
hasRainbowFart(net.minecraft.entity.player.EntityPlayer player)
Check if the given player should have rainbow farts.
|
decode, encode, getActionpublic FartPacket()
public FartPacket(net.minecraft.entity.player.EntityPlayer player)
player - The player data.public void actionClient(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
PacketBaseactionClient in class PacketBaseworld - The world.player - The player.public boolean hasRainbowFart(net.minecraft.entity.player.EntityPlayer player)
player - The player to check.public void actionServer(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayerMP player)
PacketBaseactionServer in class PacketBaseworld - The world.player - The player.