Class RegisterParticleControllersEvent
java.lang.Object
net.neoforged.bus.api.Event
at.minecraftschurli.mods.arsmagicalegacy.api.client.event.RegisterParticleControllersEvent
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class RegisterParticleControllersEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
Event that fires when ParticleController.Types are registered.
This event is not cancelable. This event is fired on the mod event bus, only on the physical client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap<net.minecraft.resources.Identifier, ParticleController.Type> voidregister(net.minecraft.resources.Identifier key, com.mojang.serialization.MapCodec<? extends ParticleController> codec) Registers aParticleController.Type.
-
Constructor Details
-
RegisterParticleControllersEvent
public RegisterParticleControllersEvent()
-
-
Method Details
-
register
public void register(net.minecraft.resources.Identifier key, com.mojang.serialization.MapCodec<? extends ParticleController> codec) Registers aParticleController.Type.- Parameters:
key- The id of theParticleController.Type.codec- AMapCodecfor theParticleController.Type.
-
getControllers
- Returns:
- An unmodifiable view of all registered
ParticleControllers.
-