Skip to content

FarmingBlock

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

public class FarmingBlock implements Component<ChunkStore>

A ChunkStore component tracking the growth state of a farming block. Stores the current stage set name, growth progress (float for sub-stage interpolation), the last game-time tick, a generation counter (incremented on each stage advance for deterministic randomization), an optional previous block type (for prefab stages), the spread rate, and the execution counter (for spread stages).

ModifierTypeNameValue
@Nonnull public static finalStringDEFAULT_STAGE_SET"Default"
ModifierTypeNameDefault
@Nonnull privateStringcurrentStageSet"Default"
privatefloatgrowthProgress0.0F
privateInstantlastTickGameTimenull
privateintgeneration0
privateStringpreviousBlockTypenull
privatefloatspreadRate1.0F
privateintexecutions0
ModifierReturn TypeSignature
public staticComponentType<ChunkStore, FarmingBlock>getComponentType()
@Nonnull publicStringgetCurrentStageSet()
publicvoidsetCurrentStageSet(@Nullable String currentStageSet)
publicfloatgetGrowthProgress()
publicvoidsetGrowthProgress(float growthProgress)
publicInstantgetLastTickGameTime()
publicvoidsetLastTickGameTime(Instant lastTickGameTime)
publicintgetGeneration()
publicvoidsetGeneration(int generation)
publicStringgetPreviousBlockType()
publicvoidsetPreviousBlockType(String previousBlockType)
publicfloatgetSpreadRate()
publicvoidsetSpreadRate(float spreadRate)
publicintgetExecutions()
publicvoidsetExecutions(int executions)
@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.