public class Packet202PlayerAbilities extends Packet
creationTimeMillis, isChunkDataPacket, packetIdToClassMap, receivedID, receivedSize, sentID, sentSize
Constructor and Description |
---|
Packet202PlayerAbilities() |
Packet202PlayerAbilities(PlayerCapabilities par1PlayerCapabilities) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsSameEntityIDAs(Packet par1Packet)
eg return packet30entity.entityId == entityId; WARNING : will throw if you compare a packet to a different packet
class
|
boolean |
getAllowFlying() |
boolean |
getDisableDamage() |
boolean |
getFlying() |
float |
getFlySpeed() |
int |
getPacketSize()
Abstract.
|
float |
getWalkSpeed() |
boolean |
isCreativeMode() |
boolean |
isRealPacket()
only false for the abstract Packet class, all real packets return true
|
void |
processPacket(NetHandler par1NetHandler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(DataInput par1DataInput)
Abstract.
|
void |
setAllowFlying(boolean par1) |
void |
setCreativeMode(boolean par1) |
void |
setDisableDamage(boolean par1)
Sets whether damage is disabled or not.
|
void |
setFlying(boolean par1)
Sets whether we're currently flying or not.
|
void |
setFlySpeed(float par1)
Sets the flying speed.
|
void |
setWalkSpeed(float par1)
Sets the walking speed.
|
void |
writePacketData(DataOutput par1DataOutput)
Abstract.
|
addIdClassMapping, canProcessAsync, getNewPacket, getPacketId, readBytesFromStream, readItemStack, readNBTTagCompound, readPacket, readString, toString, writeByteArray, writeItemStack, writePacket, writeString
public Packet202PlayerAbilities()
public Packet202PlayerAbilities(PlayerCapabilities par1PlayerCapabilities)
public void readPacketData(DataInput par1DataInput) throws IOException
readPacketData
in class Packet
IOException
public void writePacketData(DataOutput par1DataOutput) throws IOException
writePacketData
in class Packet
IOException
public void processPacket(NetHandler par1NetHandler)
processPacket
in class Packet
public int getPacketSize()
getPacketSize
in class Packet
public boolean getDisableDamage()
public void setDisableDamage(boolean par1)
public boolean getFlying()
public void setFlying(boolean par1)
public boolean getAllowFlying()
public void setAllowFlying(boolean par1)
public boolean isCreativeMode()
public void setCreativeMode(boolean par1)
public float getFlySpeed()
public void setFlySpeed(float par1)
public float getWalkSpeed()
public void setWalkSpeed(float par1)
public boolean isRealPacket()
isRealPacket
in class Packet
public boolean containsSameEntityIDAs(Packet par1Packet)
containsSameEntityIDAs
in class Packet