Class FishingAction
java.lang.Object
zombie.core.FishingAction
- All Implemented Interfaces:
INetworkPacketField,IDescriptor
- Direct Known Subclasses:
FishingActionPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionbytelongstatic bytestatic bytestatic bytestatic bytestatic bytestatic byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryItemgetPickedUpFish(IsoPlayer player) floatbooleanisConsistent(UdpConnection arg0) voidparse(ByteBuffer byteBuffer, UdpConnection udpConnection) voidvoidsetDuration(long arg0) voidsetStartFishing(IsoPlayer player, InventoryItem item, IsoGridSquare square, KahluaTable table) voidvoidvoidwrite(ByteBufferWriter byteBufferWriter) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface zombie.network.packets.IDescriptor
getClassDescription, getDescription, getDescriptionMethods 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:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
getLuaTable
-
getPickedUpFish
-
setTimeData
public void setTimeData() -
set
-
setState
-
setDuration
public void setDuration(long arg0) -
isConsistent
- Specified by:
isConsistentin interfaceINetworkPacketField
-
getProgress
public float getProgress()
-