Jump to content

Recommended Posts

Posted (edited)

Alright so in a mod I'm working on, we have custom particle effects that behave similarly to the vanilla ones. With the way they work now, I need a ParticleType<?> and an IParticleFactory<ParticleType<?>>. I'm able to get the ParticleType<?> to register using the Register<ParticleType<?>> event just like everything else, however I can't get the ParticleFactoryRegisterEvent to fire. Am I using the wrong event bus, or is something missing on a Forge end? I've tried doing this without registering anything, and just firing the event with some console output, but that isn't working either. I've also tried subscribing to Bus.FORGE instead of Bus.MOD. Here's the class I'm using, a snippet of the vanilla class, and the crash report I get on load.
 

Registration class

  Reveal hidden contents

 

Part of the vanilla class where the ParticleFactoryRegisterEvent is called.

  Reveal hidden contents

 

Crash report

  Reveal hidden contents

 

Edited by Silver_David
  • Like 1
  • 1 year later...
  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.