Interface BlockSpreadingCallback
public interface BlockSpreadingCallback
Example.
BlockSpreadingCallback.CUSTOM_SPREADING.register(spreading -> {
spreading.setBlock(Blocks.DIRT);
spreading.setType(BlockSpreadingType.GRASS);
spreading.setBehavior(new SnowySpreaderBehavior(Blocks.GRASS_BLOCK));
});
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<BlockSpreadingCallback.CustomSpreading>Allows to define blocks which can spread to each-other using a defined custom spreading behaviour.static final net.fabricmc.fabric.api.event.Event<BlockSpreadingCallback.NormalSpreading>Allows to define blocks which can spread to each-other, but with no custom spreading behaviour.
-
Field Details
-
CUSTOM_SPREADING
static final net.fabricmc.fabric.api.event.Event<BlockSpreadingCallback.CustomSpreading> CUSTOM_SPREADINGAllows to define blocks which can spread to each-other using a defined custom spreading behaviour. -
NORMAL_SPREADING
static final net.fabricmc.fabric.api.event.Event<BlockSpreadingCallback.NormalSpreading> NORMAL_SPREADINGAllows to define blocks which can spread to each-other, but with no custom spreading behaviour.
-