Package net.minecraftforge.client.event
Class RegisterParticleProvidersEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterParticleProvidersEvent
- All Implemented Interfaces:
IModBusEvent
public class RegisterParticleProvidersEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent
Fired for registering particle providers at the appropriate time.
ParticleType
s must be registered during RegisterEvent
as usual;
this event is only for the ParticleProvider
s.
This event is not cancellable, and does not have a result.
This event is fired on the mod-specific event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ParticleOptions>
voidregister
(ParticleType<T> type, ParticleEngine.SpriteParticleRegistration<T> registration) <T extends ParticleOptions>
voidregister
(ParticleType<T> type, ParticleProvider<T> provider) Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
particleEngine
-
-
Constructor Details
-
RegisterParticleProvidersEvent
-
-
Method Details
-
register
public <T extends ParticleOptions> void register(ParticleType<T> type, ParticleProvider<T> provider) -
register
public <T extends ParticleOptions> void register(ParticleType<T> type, ParticleEngine.SpriteParticleRegistration<T> registration)
-