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 booleanstatic final StreamCodec<FriendlyByteBuf, ClientboundPlayerAbilitiesPacket> private final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanFly()booleanfloatfloatvoidhandle(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.booleanisFlying()booleantype()private voidwrite(FriendlyByteBuf pBuffer) Writes the raw packet data to the data stream.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, 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
Writes the raw packet data to the data stream. -
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- 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()
-