Class SPlayerAbilitiesPacket
java.lang.Object
net.minecraft.network.play.server.SPlayerAbilitiesPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private float
private boolean
private boolean
private boolean
private float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canFly()
boolean
float
float
void
handle
(IClientPlayNetHandler p_148833_1_) boolean
isFlying()
boolean
void
read
(PacketBuffer p_148837_1_) void
write
(PacketBuffer p_148840_1_) 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.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:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
handle
- Specified by:
handle
in 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()
-