Class SPlayerAbilitiesPacket
java.lang.Object
net.minecraft.network.play.server.SPlayerAbilitiesPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate floatprivate booleanprivate booleanprivate booleanprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanFly()booleanfloatfloatvoidhandle(IClientPlayNetHandler p_148833_1_) booleanisFlying()booleanvoidread(PacketBuffer p_148837_1_) voidwrite(PacketBuffer p_148840_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.IPacket
isSkippable
-
Field Details
-
invulnerable
private boolean invulnerable -
isFlying
private boolean isFlying -
canFly
private boolean canFly -
instabuild
private boolean instabuild -
flyingSpeed
private float flyingSpeed -
walkingSpeed
private float walkingSpeed
-
-
Constructor Details
-
SPlayerAbilitiesPacket
public SPlayerAbilitiesPacket() -
SPlayerAbilitiesPacket
-
-
Method Details
-
read
- Specified by:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
write
- Specified by:
writein interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
handle
- Specified by:
handlein interfaceIPacket<IClientPlayNetHandler>
-
isInvulnerable
public boolean isInvulnerable() -
isFlying
public boolean isFlying() -
canFly
public boolean canFly() -
canInstabuild
public boolean canInstabuild() -
getFlyingSpeed
public float getFlyingSpeed() -
getWalkingSpeed
public float getWalkingSpeed()
-