Class FarmingBlock

java.lang.Object
com.hypixel.hytale.builtin.adventure.farming.states.FarmingBlock
All Implemented Interfaces:
Component<ChunkStore>, Cloneable

public class FarmingBlock extends Object implements Component<ChunkStore>
  • Field Details

  • Constructor Details

    • FarmingBlock

      public FarmingBlock()
    • FarmingBlock

      public FarmingBlock(@Nonnull String currentStageSet, float growthProgress, Instant lastTickGameTime, int generation, String previousBlockType, float spreadRate, int executions)
  • Method Details

    • getComponentType

      public static ComponentType<ChunkStore, FarmingBlock> getComponentType()
    • getCurrentStageSet

      @Nonnull public String getCurrentStageSet()
    • setCurrentStageSet

      public void setCurrentStageSet(@Nullable String currentStageSet)
    • getGrowthProgress

      public float getGrowthProgress()
    • setGrowthProgress

      public void setGrowthProgress(float growthProgress)
    • getLastTickGameTime

      public Instant getLastTickGameTime()
    • setLastTickGameTime

      public void setLastTickGameTime(Instant lastTickGameTime)
    • getGeneration

      public int getGeneration()
    • setGeneration

      public void setGeneration(int generation)
    • getPreviousBlockType

      public String getPreviousBlockType()
    • setPreviousBlockType

      public void setPreviousBlockType(String previousBlockType)
    • getSpreadRate

      public float getSpreadRate()
    • setSpreadRate

      public void setSpreadRate(float spreadRate)
    • getExecutions

      public int getExecutions()
    • setExecutions

      public void setExecutions(int executions)
    • clone

      @Nullable public Component<ChunkStore> clone()
      Specified by:
      clone in interface Component<ChunkStore>
      Returns:
      a clone instance of the original component instance.

    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object