Class FishingAction
java.lang.Object
zombie.core.FishingAction
- All Implemented Interfaces:
INetworkPacketField
,IDescriptor
- Direct Known Subclasses:
FishingActionPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte
long
protected long
static byte
static byte
static byte
static byte
static byte
static byte
protected byte
protected static byte
protected long
protected Transaction.TransactionState
protected static int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionse.krka.kahlua.vm.KahluaTable
static InventoryItem
getPickedUpFish
(IsoPlayer isoPlayer) float
boolean
isConsistent
(UdpConnection udpConnection) void
parse
(ByteBuffer byteBuffer, UdpConnection udpConnection) void
void
setDuration
(long long0) void
setStartFishing
(IsoPlayer isoPlayer, InventoryItem inventoryItem, IsoGridSquare isoGridSquare, se.krka.kahlua.vm.KahluaTable kahluaTable) void
setState
(Transaction.TransactionState transactionState) void
void
write
(ByteBufferWriter byteBufferWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, 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 -
TimeoutForInfinitiveActions
protected static int TimeoutForInfinitiveActions -
lastId
protected static byte lastId -
id
protected byte id -
state
-
duration
public long duration -
startTime
protected long startTime -
endTime
protected long endTime
-
-
Constructor Details
-
FishingAction
public FishingAction()
-
-
Method Details
-
setStartFishing
public void setStartFishing(IsoPlayer isoPlayer, InventoryItem inventoryItem, IsoGridSquare isoGridSquare, se.krka.kahlua.vm.KahluaTable kahluaTable) -
parse
- Specified by:
parse
in interfaceINetworkPacketField
-
write
- Specified by:
write
in interfaceINetworkPacketField
-
getLuaTable
public se.krka.kahlua.vm.KahluaTable getLuaTable() -
getPickedUpFish
-
setTimeData
public void setTimeData() -
set
-
setState
-
setDuration
public void setDuration(long long0) -
isConsistent
- Specified by:
isConsistent
in interfaceINetworkPacketField
-
getProgress
public float getProgress()
-