Class AnimalPacket
java.lang.Object
zombie.network.packets.character.AnimalPacket
- All Implemented Interfaces:
INetworkPacketField, IDescriptor, INetworkPacket
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbyteintshortshortbytebytebytebytelongbytefloatfloatfinal AnimalIDstatic final intfinal Predictionintintintbytebytebytebytefloatfloat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanisConsistent(UdpConnection connection) booleanisDead()voidparse(ByteBuffer b, UdpConnection connection) voidwrite(ByteBuffer b) voidMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDescriptor
getClassDescription, getDescription, getDescriptionMethods inherited from interface INetworkPacket
isPostponed, parseClient, parseClientLoading, parseServer, postpone, processClient, processClientLoading, processServer, sendToClient, sendToClients, sendToRelativeClients, sendToServer, setData, sync
-
Field Details
-
PACKET_SIZE_BYTES
public static final int PACKET_SIZE_BYTES- See Also:
-
flags
public short flags -
variables
public byte variables -
realState
-
location
public byte location -
hutchNestBox
public byte hutchNestBox -
hutchPosition
public byte hutchPosition -
vehicleId
-
idleAction
-
type
-
breed
-
alertedId
public short alertedId -
prediction
-
age
public int age -
milkQty
public float milkQty -
woolQty
public float woolQty -
weight
public float weight -
stress
public byte stress -
acceptance
public byte acceptance -
health
public byte health -
thirst
public byte thirst -
hunger
public byte hunger -
customName
-
squareX
public int squareX -
squareY
public int squareY -
squareZ
public byte squareZ -
mother
-
pregnantTime
public int pregnantTime -
lastTimeMilked
public long lastTimeMilked -
maxMilkActual
public float maxMilkActual
-
-
Constructor Details
-
AnimalPacket
public AnimalPacket()
-
-
Method Details
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytesin interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
write
-
parse
- Specified by:
parsein interfaceINetworkPacketField
-
isDead
public boolean isDead() -
isConsistent
- Specified by:
isConsistentin interfaceINetworkPacketField
-