Class FishingAction
java.lang.Object
zombie.core.FishingAction
- All Implemented Interfaces:
INetworkPacketField
,IDescriptor
- Direct Known Subclasses:
FishingActionPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte
long
static byte
static byte
static byte
static byte
static byte
static byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryItem
getPickedUpFish
(IsoPlayer player) float
boolean
isConsistent
(UdpConnection arg0) void
parse
(ByteBuffer byteBuffer, UdpConnection udpConnection) void
void
setDuration
(long arg0) void
setStartFishing
(IsoPlayer player, InventoryItem item, IsoGridSquare square, KahluaTable table) void
void
void
write
(ByteBufferWriter byteBufferWriter) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.network.packets.IDescriptor
getClassDescription, getDescription, getDescription
Methods inherited from interface zombie.network.fields.INetworkPacketField
getPacketSizeBytes
-
Field Details
-
flagStartFishing
public static byte flagStartFishing -
flagStopFishing
public static byte flagStopFishing -
flagUpdateFish
public static byte flagUpdateFish -
flagUpdateBobberParameters
public static byte flagUpdateBobberParameters -
flagCreateBobber
public static byte flagCreateBobber -
flagDestroyBobber
public static byte flagDestroyBobber -
contentFlag
public byte contentFlag -
duration
public long duration
-
-
Constructor Details
-
FishingAction
public FishingAction()
-
-
Method Details
-
setStartFishing
public void setStartFishing(IsoPlayer player, InventoryItem item, IsoGridSquare square, KahluaTable table) -
parse
- Specified by:
parse
in interfaceINetworkPacketField
-
write
- Specified by:
write
in interfaceINetworkPacketField
-
getLuaTable
-
getPickedUpFish
-
setTimeData
public void setTimeData() -
set
-
setState
-
setDuration
public void setDuration(long arg0) -
isConsistent
- Specified by:
isConsistent
in interfaceINetworkPacketField
-
getProgress
public float getProgress()
-