Class AnimalCommandPacket
java.lang.Object
zombie.network.packets.character.AnimalCommandPacket
- All Implemented Interfaces:
INetworkPacketField, IDescriptor, INetworkPacket
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparse(ByteBuffer b, UdpConnection connection) voidprocessClient(UdpConnection connection) voidprocessServer(PacketTypes.PacketType packetType, UdpConnection connection) voidset(AnimalCommandPacket.Type operation, IsoAnimal animal) voidset(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, InventoryItem item) voidset(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, IsoObject object, boolean remove) voidset(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, IsoObject object, InventoryItem item) voidset(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, IsoHutch hutch) voidset(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle, InventoryItem item) voidset(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoGridSquare sq) voidset(AnimalCommandPacket.Type operation, IsoDeadBody body, InventoryItem item) voidvoidMethods 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, processClientLoading, sendToClient, sendToClients, sendToRelativeClients, sendToServer, syncMethods inherited from interface INetworkPacketField
getPacketSizeBytes, isConsistent
-
Field Details
-
type
-
flags
public byte flags -
animalId
-
playerId
-
vehicleId
-
objectId
-
x
public int x -
y
public int y -
z
public int z -
item
-
-
Constructor Details
-
AnimalCommandPacket
public AnimalCommandPacket()
-
-
Method Details
-
setData
- Specified by:
setDatain interfaceINetworkPacket
-
set
-
set
-
set
public void set(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle, InventoryItem item) -
set
public void set(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, IsoObject object, boolean remove) -
set
public void set(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, InventoryItem item) -
set
-
set
public void set(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, IsoObject object, InventoryItem item) -
set
public void set(AnimalCommandPacket.Type operation, IsoAnimal animal, IsoPlayer player, IsoHutch hutch) -
write
- Specified by:
writein interfaceINetworkPacketField
-
parse
- Specified by:
parsein interfaceINetworkPacketField
-
processServer
- Specified by:
processServerin interfaceINetworkPacket
-
processClient
- Specified by:
processClientin interfaceINetworkPacket
-