Class StrippableBlockRegistry

java.lang.Object
net.fabricmc.fabric.api.registry.StrippableBlockRegistry

public final class StrippableBlockRegistry extends Object
A registry for axe stripping interactions. A vanilla example is turning logs to stripped logs.
  • 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 stripped
      stripped - the stripped result block
      Throws:
      IllegalArgumentException - if the input or the output doesn't have the axis property