Package net.fabricmc.fabric.api.registry
Class StrippableBlockRegistry
java.lang.Object
net.fabricmc.fabric.api.registry.StrippableBlockRegistry
A registry for axe stripping interactions. A vanilla example is turning logs to stripped logs.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
register
(net.minecraft.block.Block input, net.minecraft.block.Block stripped) Registers a stripping interaction.
-
Method Details
-
register
public static void register(net.minecraft.block.Block input, net.minecraft.block.Block stripped) Registers a stripping interaction.Both blocks must have the
axis
property.- Parameters:
input
- the input block that can be strippedstripped
- the stripped result block- Throws:
IllegalArgumentException
- if the input or the output doesn't have theaxis
property
-