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
    registerCopperBlockSet(net.minecraft.world.level.block.WeatheringCopperBlocks blockSet)
    Registers a WeatheringCopperBlocks and its oxidizing and waxing variants.
    static void
    registerOxidizableBlockPair(net.minecraft.world.level.block.Block less, net.minecraft.world.level.block.Block more)
    Registers a block pair as being able to increase and decrease oxidation.
    static void
    registerWaxableBlockPair(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.

    Methods inherited from class java.lang.Object

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

    • registerOxidizableBlockPair

      public static void registerOxidizableBlockPair(net.minecraft.world.level.block.Block less, net.minecraft.world.level.block.Block more)
      Registers a block pair as being able to increase and decrease oxidation.
      Parameters:
      less - the variant with less oxidation
      more - the variant with more oxidation
    • registerWaxableBlockPair

      public static void registerWaxableBlockPair(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
    • registerCopperBlockSet

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