Class PlaceBlockProcedure

java.lang.Object
com.hypixel.hytale.builtin.randomtick.procedures.PlaceBlockProcedure
All Implemented Interfaces:
RandomTickProcedure

public class PlaceBlockProcedure extends Object implements RandomTickProcedure
A generic random tick procedure that places a block at a fixed offset relative to the ticking block.

In the simplest case configure a single PlaceBlockProcedure.PlacementRule with just a "Block" to always place that block. A rule can instead supply a weighted "Blocks" list to randomly pick from a set of candidate blocks, with higher weights chosen proportionally more often. Optionally, the rule can be scoped to the ticking block's own "State" (see PlaceBlockProcedure.PlacementRule), so a single base block with several "State.Definitions" variants can place different blocks. A rule whose "State" is omitted applies to the block's default (stateless) form, so the procedure also works on blocks that do not use states at all. By default placement only happens when the target cell is empty; otherwise it is silently skipped and retried on a later tick.