net.minecraft.network.packet.s2c.play

public class PlayerAbilitiesS2CPacket

implements Packet<ClientPlayPacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket
net.minecraft.class_2696
net.minecraft.network.packet.s2c.play.PlayerAbilitiesS2CPacket

Field summary

Modifier and TypeField
public static final PacketCodec<PacketByteBuf, PlayerAbilitiesS2CPacket>
STREAM_CODEC
field_47948
CODEC
private static final int
FLAG_INVULNERABLE
field_33336
INVULNERABLE_MASK
private static final int
FLAG_FLYING
field_33337
FLYING_MASK
private static final int
FLAG_CAN_FLY
field_33338
ALLOW_FLYING_MASK
private static final int
FLAG_INSTABUILD
field_33339
CREATIVE_MODE_MASK
private final boolean
invulnerable
field_12339
invulnerable
private final boolean
isFlying
field_12338
flying
private final boolean
canFly
field_12337
allowFlying
private final boolean
instabuild
field_12336
creativeMode
private final float
flyingSpeed
field_12335
flySpeed
private final float
walkingSpeed
field_12334
walkSpeed

Constructor summary

ModifierConstructor
public (PlayerAbilities abilities)
private (PacketByteBuf buf)

Method summary

Modifier and TypeMethod
private void
write(FriendlyByteBuf output)
method_55897(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<PlayerAbilitiesS2CPacket>
type()
method_65080()
getPacketType()
public void
handle(ClientGamePacketListener listener)
method_11697(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public boolean
isInvulnerable()
method_11695()
isInvulnerable()
public boolean
isFlying()
method_11698()
isFlying()
public boolean
canFly()
method_11699()
allowFlying()
public boolean
canInstabuild()
method_11696()
isCreativeMode()
public float
getFlyingSpeed()
method_11690()
getFlySpeed()
public float
getWalkingSpeed()
method_11691()
getWalkSpeed()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)