Class ClientboundPlayerAbilitiesPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundPlayerAbilitiesPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private static final int
private static final int
private static final int
private static final int
private final float
private final boolean
private final boolean
private final boolean
static final StreamCodec
<FriendlyByteBuf, ClientboundPlayerAbilitiesPacket> private final float
-
Constructor Summary
ModifierConstructorDescriptionprivate
ClientboundPlayerAbilitiesPacket
(FriendlyByteBuf p_179033_) ClientboundPlayerAbilitiesPacket
(Abilities p_132667_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canFly()
boolean
float
float
void
handle
(ClientGamePacketListener p_132673_) boolean
isFlying()
boolean
type()
private void
write
(FriendlyByteBuf p_132676_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
FLAG_INVULNERABLE
private static final int FLAG_INVULNERABLE- See Also:
-
FLAG_FLYING
private static final int FLAG_FLYING- See Also:
-
FLAG_CAN_FLY
private static final int FLAG_CAN_FLY- See Also:
-
FLAG_INSTABUILD
private static final int FLAG_INSTABUILD- See Also:
-
invulnerable
private final boolean invulnerable -
isFlying
private final boolean isFlying -
canFly
private final boolean canFly -
instabuild
private final boolean instabuild -
flyingSpeed
private final float flyingSpeed -
walkingSpeed
private final float walkingSpeed
-
-
Constructor Details
-
ClientboundPlayerAbilitiesPacket
-
ClientboundPlayerAbilitiesPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
isInvulnerable
public boolean isInvulnerable() -
isFlying
public boolean isFlying() -
canFly
public boolean canFly() -
canInstabuild
public boolean canInstabuild() -
getFlyingSpeed
public float getFlyingSpeed() -
getWalkingSpeed
public float getWalkingSpeed()
-