public class CPlayerAbilitiesPacket extends java.lang.Object implements IPacket<IServerPlayNetHandler>
Modifier and Type | Field and Description |
---|---|
private boolean |
allowFlying |
private boolean |
creativeMode |
private boolean |
flying |
private float |
flySpeed |
private boolean |
invulnerable |
private float |
walkSpeed |
Constructor and Description |
---|
CPlayerAbilitiesPacket() |
CPlayerAbilitiesPacket(PlayerAbilities capabilities) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAllowFlying() |
boolean |
isCreativeMode() |
boolean |
isFlying() |
boolean |
isInvulnerable() |
void |
processPacket(IServerPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
setAllowFlying(boolean isAllowFlying) |
void |
setCreativeMode(boolean isCreativeMode) |
void |
setFlying(boolean isFlying) |
void |
setFlySpeed(float flySpeedIn) |
void |
setInvulnerable(boolean isInvulnerable) |
void |
setWalkSpeed(float walkSpeedIn) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private boolean invulnerable
private boolean flying
private boolean allowFlying
private boolean creativeMode
private float flySpeed
private float walkSpeed
public CPlayerAbilitiesPacket()
public CPlayerAbilitiesPacket(PlayerAbilities capabilities)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IServerPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IServerPlayNetHandler>
java.io.IOException
public void processPacket(IServerPlayNetHandler handler)
processPacket
in interface IPacket<IServerPlayNetHandler>
public boolean isInvulnerable()
public void setInvulnerable(boolean isInvulnerable)
public boolean isFlying()
public void setFlying(boolean isFlying)
public boolean isAllowFlying()
public void setAllowFlying(boolean isAllowFlying)
public boolean isCreativeMode()
public void setCreativeMode(boolean isCreativeMode)
public void setFlySpeed(float flySpeedIn)
public void setWalkSpeed(float walkSpeedIn)