public class FartPacket
extends org.cyclops.cyclopscore.network.packet.PlayerPositionPacket
| 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) |
void |
actionServer(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayerMP player) |
protected org.cyclops.cyclopscore.network.packet.PlayerPositionPacket |
create(net.minecraft.entity.player.EntityPlayer player,
int range) |
protected org.cyclops.cyclopscore.init.ModBase |
getModInstance() |
boolean |
hasRainbowFart(net.minecraft.entity.player.EntityPlayer player)
Check if the given player should have rainbow farts.
|
protected void |
performClientAction(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player) |
public 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)
actionClient in class org.cyclops.cyclopscore.network.packet.PlayerPositionPacketprotected void performClientAction(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
performClientAction in class org.cyclops.cyclopscore.network.packet.PlayerPositionPacketpublic 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)
actionServer in class org.cyclops.cyclopscore.network.packet.PlayerPositionPacketprotected org.cyclops.cyclopscore.network.packet.PlayerPositionPacket create(net.minecraft.entity.player.EntityPlayer player,
int range)
create in class org.cyclops.cyclopscore.network.packet.PlayerPositionPacketprotected org.cyclops.cyclopscore.init.ModBase getModInstance()
getModInstance in class org.cyclops.cyclopscore.network.packet.PlayerPositionPacket