Skip to content

DirectionalGrowthBehaviour

Package: com.hypixel.hytale.builtin.adventure.farming.config.stages.spread

public class DirectionalGrowthBehaviour extends SpreadGrowthBehaviour

A spread growth behaviour that places blocks at randomized positions within configurable horizontal and vertical ranges from the source. Supports weighted random block type selection and vertical direction constraints (UPWARDS, DOWNWARDS, BOTH). Validates placement against block physics before placing.

ModifierTypeName
protectedIWeightedMap<DirectionalGrowthBehaviour.BlockTypeWeight>blockTypes
protectedIntRangehorizontalRange
protectedIntRangeverticalRange
protectedDirectionalGrowthBehaviour.VerticalDirectionverticalDirection
ModifierReturn TypeSignature
publicIWeightedMap<DirectionalGrowthBehaviour.BlockTypeWeight>getBlockTypes()
publicIntRangegetHorizontalRange()
publicIntRangegetVerticalRange()
publicDirectionalGrowthBehaviour.VerticalDirectiongetVerticalDirection()
publicvoidexecute(@Nonnull ComponentAccessor<ChunkStore> componentAccessor, @Nonnull Ref<ChunkStore> sectionRef, @Nonnull Ref<ChunkStore> blockRef, int worldX, int worldY, int worldZ, float newSpreadRate)
TypeKindDescription
BlockTypeWeightclassWeighted block type entry for spread selection.
VerticalDirectionenumDirection constraint for vertical spread.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.