Class ActiveCookCompoundData

java.lang.Object
emu.grasscutter.game.managers.cooking.ActiveCookCompoundData

@Entity public class ActiveCookCompoundData extends Object
  • 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()