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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionClientboundPlayerAbilitiesPacket(FriendlyByteBuf p_179033_) ClientboundPlayerAbilitiesPacket(Abilities p_132667_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanFly()booleanfloatfloatvoidhandle(ClientGamePacketListener p_132673_) booleanisFlying()booleanvoidwrite(FriendlyByteBuf p_132676_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
FLAG_INVULNERABLEprivate static final int FLAG_INVULNERABLE- See Also:
 
- 
FLAG_FLYINGprivate static final int FLAG_FLYING- See Also:
 
- 
FLAG_CAN_FLYprivate static final int FLAG_CAN_FLY- See Also:
 
- 
FLAG_INSTABUILDprivate static final int FLAG_INSTABUILD- See Also:
 
- 
invulnerableprivate final boolean invulnerable
- 
isFlyingprivate final boolean isFlying
- 
canFlyprivate final boolean canFly
- 
instabuildprivate final boolean instabuild
- 
flyingSpeedprivate final float flyingSpeed
- 
walkingSpeedprivate final float walkingSpeed
 
- 
- 
Constructor Details- 
ClientboundPlayerAbilitiesPacket
- 
ClientboundPlayerAbilitiesPacket
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Packet<ClientGamePacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
- 
isInvulnerablepublic boolean isInvulnerable()
- 
isFlyingpublic boolean isFlying()
- 
canFlypublic boolean canFly()
- 
canInstabuildpublic boolean canInstabuild()
- 
getFlyingSpeedpublic float getFlyingSpeed()
- 
getWalkingSpeedpublic float getWalkingSpeed()
 
-