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 float |
fovModifier |
private boolean |
invulnerable |
Constructor and Description |
---|
PlayerAbilitiesS2CPacket() |
PlayerAbilitiesS2CPacket(PlayerAbilities playerAbilities) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowFlying() |
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
float |
getFlySpeed() |
float |
getFovModifier() |
boolean |
isCreativeMode() |
boolean |
isFlying() |
boolean |
isInvulnerable() |
void |
read(PacketByteBuf buf) |
void |
setAllowFlying(boolean bool) |
void |
setCreativeMode(boolean bool) |
void |
setFlying(boolean bool) |
void |
setFlySpeed(float float2) |
void |
setFovModifier(float float2) |
void |
setInvulnerable(boolean bool) |
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 fovModifier
public PlayerAbilitiesS2CPacket()
public PlayerAbilitiesS2CPacket(PlayerAbilities playerAbilities)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
public boolean isInvulnerable()
public void setInvulnerable(boolean bool)
public boolean isFlying()
public void setFlying(boolean bool)
public boolean allowFlying()
public void setAllowFlying(boolean bool)
public boolean isCreativeMode()
public void setCreativeMode(boolean bool)
@Environment(value=CLIENT) public float getFlySpeed()
public void setFlySpeed(float float2)
@Environment(value=CLIENT) public float getFovModifier()
public void setFovModifier(float float2)