public class SPlayerAbilitiesPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
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 |
---|
SPlayerAbilitiesPacket() |
SPlayerAbilitiesPacket(PlayerAbilities capabilities) |
Modifier and Type | Method and Description |
---|---|
float |
getFlySpeed() |
float |
getWalkSpeed() |
boolean |
isAllowFlying() |
boolean |
isCreativeMode() |
boolean |
isFlying() |
boolean |
isInvulnerable() |
void |
processPacket(IClientPlayNetHandler 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 SPlayerAbilitiesPacket()
public SPlayerAbilitiesPacket(PlayerAbilities capabilities)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void processPacket(IClientPlayNetHandler handler)
processPacket
in interface IPacket<IClientPlayNetHandler>
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 float getFlySpeed()
public void setFlySpeed(float flySpeedIn)
public float getWalkSpeed()
public void setWalkSpeed(float walkSpeedIn)