public class CPlayerAbilitiesPacket extends java.lang.Object implements IPacket<IServerPlayNetHandler>
| Constructor and Description |
|---|
CPlayerAbilitiesPacket() |
CPlayerAbilitiesPacket(PlayerAbilities capabilities) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowFlying() |
boolean |
isCreativeMode() |
boolean |
isFlying() |
boolean |
isInvulnerable() |
void |
processPacket(IServerPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
setAllowFlying(boolean isAllowFlying) |
void |
setCreativeMode(boolean isCreativeMode) |
void |
setFlying(boolean isFlying) |
void |
setFlySpeed(float flySpeedIn) |
void |
setInvulnerable(boolean isInvulnerable) |
void |
setWalkSpeed(float walkSpeedIn) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldSkipErrorspublic CPlayerAbilitiesPacket()
public CPlayerAbilitiesPacket(PlayerAbilities capabilities)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData in interface IPacket<IServerPlayNetHandler>java.io.IOExceptionpublic void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData in interface IPacket<IServerPlayNetHandler>java.io.IOExceptionpublic void processPacket(IServerPlayNetHandler handler)
processPacket in interface IPacket<IServerPlayNetHandler>public boolean isInvulnerable()
public void setInvulnerable(boolean isInvulnerable)
public boolean isFlying()
public void setFlying(boolean isFlying)
public boolean isAllowFlying()
public void setAllowFlying(boolean isAllowFlying)
public boolean isCreativeMode()
public void setCreativeMode(boolean isCreativeMode)
public void setFlySpeed(float flySpeedIn)
public void setWalkSpeed(float walkSpeedIn)