Skip to content

TilledSoilBlock

Package: com.hypixel.hytale.builtin.adventure.farming.states

public class TilledSoilBlock implements Component<ChunkStore>

A ChunkStore component tracking the state of tilled soil. Manages whether a crop is planted above, whether the soil is fertilized (boosting growth via FertilizerGrowthModifierAsset), whether external water is present, a manual watering expiry time, and a decay timer that converts the soil back to its base block type when no crop is planted.

The computeBlockType method returns the appropriate block state key (Fertilized_Watered, Fertilized, Watered, or default) based on the current fertilized and watered flags.

ModifierTypeName
public staticintVERSION (= 1)
ModifierTypeName
protectedbooleanplanted
protectedbooleanfertilized
protectedbooleanexternalWater
@Nullable protectedInstantwateredUntil
@Nullable protectedInstantdecayTime
ModifierReturn TypeSignature
public staticComponentType<ChunkStore, TilledSoilBlock>getComponentType()
publicbooleanisPlanted()
publicvoidsetPlanted(boolean planted)
publicvoidsetWateredUntil(@Nullable Instant wateredUntil)
@Nullable publicInstantgetWateredUntil()
publicbooleanisFertilized()
publicvoidsetFertilized(boolean fertilized)
publicbooleanhasExternalWater()
publicvoidsetExternalWater(boolean externalWater)
@Nullable publicInstantgetDecayTime()
publicvoidsetDecayTime(@Nullable Instant decayTime)
@Nullable publicStringcomputeBlockType(@Nonnull Instant gameTime, @Nonnull BlockType type)
@Nullable publicComponent<ChunkStore>clone()
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.