Class OxidizableBlocksRegistry
java.lang.Object
net.fabricmc.fabric.api.registry.OxidizableBlocksRegistry
Provides methods for registering oxidizable and waxable blocks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterNextStage(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 voidregisterWaxable(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 voidregisterWeatheringCopperBlocks(net.minecraft.world.level.block.WeatheringCopperBlocks copperBlocks) Registers aWeatheringCopperBlocksand its oxidizing and waxing variants.
-
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 oxidationto- 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 variantwaxed- the waxed variant
-
registerWeatheringCopperBlocks
public static void registerWeatheringCopperBlocks(net.minecraft.world.level.block.WeatheringCopperBlocks copperBlocks) Registers aWeatheringCopperBlocksand its oxidizing and waxing variants.- Parameters:
copperBlocks- theWeatheringCopperBlocksto register
-