Class FlattenableBlockRegistry

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

public final class FlattenableBlockRegistry extends Object
A registry for shovel flattening interactions. A vanilla example is turning dirt to dirt paths.
  • Method Details

    • register

      public static void register(net.minecraft.block.Block input, net.minecraft.block.BlockState flattened)
      Registers a flattening interaction.
      Parameters:
      input - the input block that can be flattened
      flattened - the flattened result block state