Interface IgnisBlockStrategy

All Superinterfaces:
IgnisStrategy
All Known Implementing Classes:
AbstractIgnisBlockStrategy

public interface IgnisBlockStrategy extends IgnisStrategy
Runtime behavior for custom block types.

Two lifecycles

Blocks have a placed lifecycle while the barrier block exists in the world, and an active lifecycle after ignition when a RuntimeBlockInstance ticks until trigger.

Placed block callbacks

Active block callbacks

Override profile(BlockDefinition) to declare combustibility, default click actions, and ignition materials. Click behavior is implemented in onPlacedClick(BlockDefinition, IgnisLocation, IgnisPlayer, IgnisInteraction, IgnisItem); YAML interactions is optional tuning data (sounds, particles) via BlockDefinition.getInteractionConfig().