DirectionalGrowthBehaviour
Package: com.hypixel.hytale.builtin.adventure.farming.config.stages.spread
public class DirectionalGrowthBehaviour extends SpreadGrowthBehaviourA 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.
Fields
Section titled “Fields”| Modifier | Type | Name |
|---|---|---|
protected | IWeightedMap<DirectionalGrowthBehaviour.BlockTypeWeight> | blockTypes |
protected | IntRange | horizontalRange |
protected | IntRange | verticalRange |
protected | DirectionalGrowthBehaviour.VerticalDirection | verticalDirection |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | IWeightedMap<DirectionalGrowthBehaviour.BlockTypeWeight> | getBlockTypes() |
public | IntRange | getHorizontalRange() |
public | IntRange | getVerticalRange() |
public | DirectionalGrowthBehaviour.VerticalDirection | getVerticalDirection() |
public | void | execute(@Nonnull ComponentAccessor<ChunkStore> componentAccessor, @Nonnull Ref<ChunkStore> sectionRef, @Nonnull Ref<ChunkStore> blockRef, int worldX, int worldY, int worldZ, float newSpreadRate) |
Inner Classes
Section titled “Inner Classes”| Type | Kind | Description |
|---|---|---|
| BlockTypeWeight | class | Weighted block type entry for spread selection. |
| VerticalDirection | enum | Direction 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.