Class TilledSoilBlock

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

public class TilledSoilBlock extends Object implements Component<ChunkStore>
A component that represents a tilled soil block used for farming.
  • Field Details

  • Constructor Details

    • TilledSoilBlock

      public TilledSoilBlock()
    • TilledSoilBlock

      public TilledSoilBlock(boolean planted, boolean fertilized, boolean externalWater, Instant wateredUntil, Instant decayTime)
  • Method Details

    • getComponentType

      public static ComponentType<ChunkStore, TilledSoilBlock> getComponentType()
    • isPlanted

      public boolean isPlanted()
    • setPlanted

      public void setPlanted(boolean planted)
    • setWateredUntil

      public void setWateredUntil(@Nullable Instant wateredUntil)
    • getWateredUntil

      @Nullable public Instant getWateredUntil()
    • isFertilized

      public boolean isFertilized()
    • setFertilized

      public void setFertilized(boolean fertilized)
    • hasExternalWater

      public boolean hasExternalWater()
    • setExternalWater

      public void setExternalWater(boolean externalWater)
    • getDecayTime

      @Nullable public Instant getDecayTime()
    • setDecayTime

      public void setDecayTime(@Nullable Instant decayTime)
    • computeBlockType

      @Nullable public String computeBlockType(@Nonnull Instant gameTime, @Nonnull BlockType type)
    • toString

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

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