Class OxidizableBlocksRegistry

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

public final class OxidizableBlocksRegistry extends Object
Provides methods for registering oxidizable and waxable blocks.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    registerNextStage(net.minecraft.world.level.block.Block from, net.minecraft.world.level.block.Block to)
    Registers the next oxidization stage from one block to the other.
    static void
    registerWaxable(net.minecraft.world.level.block.Block unwaxed, net.minecraft.world.level.block.Block waxed)
    Registers a block pair as being able to add and remove wax.
    static void
    registerWeatheringCopperBlocks(net.minecraft.world.level.block.WeatheringCopperBlocks copperBlocks)
    Registers a WeatheringCopperBlocks and its oxidizing and waxing variants.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • registerNextStage

      public static void registerNextStage(net.minecraft.world.level.block.Block from, net.minecraft.world.level.block.Block to)
      Registers the next oxidization stage from one block to the other.
      Parameters:
      from - the variant with less oxidation
      to - the variant with more oxidation
    • registerWaxable

      public static void registerWaxable(net.minecraft.world.level.block.Block unwaxed, net.minecraft.world.level.block.Block waxed)
      Registers a block pair as being able to add and remove wax.
      Parameters:
      unwaxed - the unwaxed variant
      waxed - the waxed variant
    • registerWeatheringCopperBlocks

      public static void registerWeatheringCopperBlocks(net.minecraft.world.level.block.WeatheringCopperBlocks copperBlocks)
      Registers a WeatheringCopperBlocks and its oxidizing and waxing variants.
      Parameters:
      copperBlocks - the WeatheringCopperBlocks to register