Class BlockTransformerEvents
For adding new transformations to the vanilla transformers of axes, shovels, and hoes, see BlockTransformerHelper
or the various block tags utilized by those vanilla transformers.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<BlockTransformerEvents.Modify> An event that allows aBlockTransformerto be modified without needing to fully override it. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MODIFY
An event that allows aBlockTransformerto be modified without needing to fully override it.This should only be used to modify the behavior of external block transformers, where 'external' means either vanilla, from a data pack, or from another mod.
For instance, a mod might add a transformer for one of its tools, and you may wish to add a new transformation to the transformer for your own blocks.
For your own block transformers, you should simply define them in your mod's data pack. See the Block Transformer Definition page on the Minecraft Wiki for more information, and consider generating the JSON files with data generation.
Note: If you wish to add transformations to axes, shovels, or hoes, consider using methods in
BlockTransformerHelperor extending the relevant block tags through your mod's data pack instead.
-
-
Constructor Details
-
BlockTransformerEvents
public BlockTransformerEvents()
-