Class ActiveCookCompoundData
java.lang.Object
emu.grasscutter.game.managers.cooking.ActiveCookCompoundData
-
Constructor Summary
ConstructorsConstructorDescriptionActiveCookCompoundData(int compoundId, int processTime, int count, int startTime) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCompound(int count, int currentTime) intintgetOutputCount(int currentTime) intgetOutputTime(int currentTime) Get the timestamp of next output.intintgetWaitCount(int currentTime) inttakeCompound(int currentTime) Take away all finished compound.
-
Constructor Details
-
ActiveCookCompoundData
public ActiveCookCompoundData(int compoundId, int processTime, int count, int startTime)
-
-
Method Details
-
getOutputCount
public int getOutputCount(int currentTime) -
getWaitCount
public int getWaitCount(int currentTime) -
getOutputTime
public int getOutputTime(int currentTime) Get the timestamp of next output. If all finished,return 0 -
addCompound
public void addCompound(int count, int currentTime) -
takeCompound
public int takeCompound(int currentTime) Take away all finished compound.- Returns:
- The number of finished items.
-
getCompoundId
public int getCompoundId() -
getTotalCount
public int getTotalCount()
-