public class PlayerAbilitiesS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| 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 |
|---|
PlayerAbilitiesS2CPacket() |
PlayerAbilitiesS2CPacket(PlayerAbilities playerAbilities) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowFlying() |
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
float |
getFlySpeed() |
float |
getWalkSpeed() |
boolean |
isCreativeMode() |
boolean |
isFlying() |
boolean |
isInvulnerable() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate boolean invulnerable
private boolean flying
private boolean allowFlying
private boolean creativeMode
private float flySpeed
private float walkSpeed
public PlayerAbilitiesS2CPacket()
public PlayerAbilitiesS2CPacket(PlayerAbilities playerAbilities)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public boolean isInvulnerable()
@Environment(value=CLIENT) public boolean isFlying()
@Environment(value=CLIENT) public boolean allowFlying()
@Environment(value=CLIENT) public boolean isCreativeMode()
@Environment(value=CLIENT) public float getFlySpeed()
@Environment(value=CLIENT) public float getWalkSpeed()