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

    • DEFAULT_STAGE_SET

      public static final String DEFAULT_STAGE_SET
      See Also:
    • CODEC

      public static final BuilderCodec<FarmingBlock> CODEC
    • currentStageSet

      private String currentStageSet
    • growthProgress

      private float growthProgress
    • lastTickGameTime

      private Instant lastTickGameTime
    • generation

      private int generation
    • previousBlockType

      private String previousBlockType
    • spreadRate

      private float spreadRate
    • executions

      private int executions
  • Constructor Details

    • FarmingBlock

      public FarmingBlock()
    • FarmingBlock

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

    • getComponentType

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

      public String getCurrentStageSet()
    • setCurrentStageSet

      public void setCurrentStageSet(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>
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object