Class RegisterCauldronFluidContentEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.fluids.RegisterCauldronFluidContentEvent
All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent

public class RegisterCauldronFluidContentEvent extends net.neoforged.bus.api.Event implements net.neoforged.fml.event.IModBusEvent
Event to register CauldronFluidContent for modded cauldrons.

Registering cauldrons is done by calling CauldronFluidContent.register(net.minecraft.world.level.block.Block, net.minecraft.world.level.material.Fluid, int, net.minecraft.world.level.block.state.properties.IntegerProperty) and allows all cauldrons registered in this way to interoperate with each other when accessed via the Capabilities.FluidHandler.BLOCK capability.

  • Nested Class Summary

    Nested classes/interfaces inherited from class net.neoforged.bus.api.Event

    net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    register(Block block, Fluid fluid, int totalAmount, @Nullable IntegerProperty levelProperty)
    Register a new cauldron, allowing it to be filled and emptied through the standard capability.

    Methods inherited from class net.neoforged.bus.api.Event

    getResult, hasResult, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait