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
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final intprivate static final intprivate static final intprivate static final intprivate final floatprivate final booleanprivate final booleanprivate final booleanprivate final float - 
Constructor Summary
ConstructorsConstructorDescriptionClientboundPlayerAbilitiesPacket(FriendlyByteBuf p_179033_) ClientboundPlayerAbilitiesPacket(Abilities p_132667_)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanFly()booleanfloatfloatvoidhandle(ClientGamePacketListener p_132673_) booleanisFlying()booleanvoidwrite(FriendlyByteBuf p_132676_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, nextProtocol 
- 
Field Details
- 
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
- Specified by:
 writein interfacePacket<ClientGamePacketListener>
 - 
handle
- Specified by:
 handlein 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() 
 -