public class SPacketPlayerAbilities extends java.lang.Object implements Packet<INetHandlerPlayClient>
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 |
---|
SPacketPlayerAbilities() |
SPacketPlayerAbilities(PlayerCapabilities capabilities) |
Modifier and Type | Method and Description |
---|---|
float |
getFlySpeed() |
float |
getWalkSpeed() |
boolean |
isAllowFlying() |
boolean |
isCreativeMode() |
boolean |
isFlying() |
boolean |
isInvulnerable() |
void |
processPacket(INetHandlerPlayClient 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 SPacketPlayerAbilities()
public SPacketPlayerAbilities(PlayerCapabilities capabilities)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
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)