public class UpdatePlayerAbilitiesC2SPacket extends Object implements Packet<ServerPlayPacketListener>
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 |
---|
UpdatePlayerAbilitiesC2SPacket() |
UpdatePlayerAbilitiesC2SPacket(PlayerAbilities abilities) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
boolean |
isCreativeMode() |
boolean |
isFlying() |
boolean |
isFlyingAllowed() |
boolean |
isInvulnerable() |
void |
read(PacketByteBuf buf) |
void |
setAllowFlying(boolean bool) |
void |
setCreativeMode(boolean bool) |
void |
setFlying(boolean bool) |
void |
setFlySpeed(float float2) |
void |
setInvulnerable(boolean bool) |
void |
setWalkSpeed(float float2) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private boolean invulnerable
private boolean flying
private boolean allowFlying
private boolean creativeMode
private float flySpeed
private float walkSpeed
public UpdatePlayerAbilitiesC2SPacket()
public UpdatePlayerAbilitiesC2SPacket(PlayerAbilities abilities)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
public boolean isInvulnerable()
public void setInvulnerable(boolean bool)
public boolean isFlying()
public void setFlying(boolean bool)
public boolean isFlyingAllowed()
public void setAllowFlying(boolean bool)
public boolean isCreativeMode()
public void setCreativeMode(boolean bool)
public void setFlySpeed(float float2)
public void setWalkSpeed(float float2)