public class CPacketPlayerAbilities extends java.lang.Object implements Packet<INetHandlerPlayServer>
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 |
---|
CPacketPlayerAbilities() |
CPacketPlayerAbilities(PlayerCapabilities capabilities) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAllowFlying() |
boolean |
isCreativeMode() |
boolean |
isFlying() |
boolean |
isInvulnerable() |
void |
processPacket(INetHandlerPlayServer 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) |
private boolean invulnerable
private boolean flying
private boolean allowFlying
private boolean creativeMode
private float flySpeed
private float walkSpeed
public CPacketPlayerAbilities()
public CPacketPlayerAbilities(PlayerCapabilities capabilities)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayServer>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayServer>
java.io.IOException
public void processPacket(INetHandlerPlayServer handler)
processPacket
in interface Packet<INetHandlerPlayServer>
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)