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 boolean
private static int
private static int
private static int
private static int
private float
private boolean
private boolean
private boolean
private float
-
Constructor Summary
ConstructorDescriptionClientboundPlayerAbilitiesPacket(FriendlyByteBuf p_179033_)
ClientboundPlayerAbilitiesPacket(Abilities p_132667_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canFly()
boolean
float
float
void
handle(ClientGamePacketListener p_132673_)
boolean
isFlying()
boolean
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
-
Field Details
-
FLAG_INVULNERABLE
private static final int FLAG_INVULNERABLE- See Also:
- Constant Field Values
-
FLAG_FLYING
private static final int FLAG_FLYING- See Also:
- Constant Field Values
-
FLAG_CAN_FLY
private static final int FLAG_CAN_FLY- See Also:
- Constant Field Values
-
FLAG_INSTABUILD
private static final int FLAG_INSTABUILD- See Also:
- Constant Field Values
-
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
- Specified by:
write
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()
-