Jump to content

z3nth10n

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by z3nth10n

  1. Hi guys! I'm having problems to attach new event handlers... I created the following class: @Mod.EventBusSubscriber public class CubicCityEventHandlers { @SubscribeEvent public static void onRoadPopulated(RoadPopulateEvent event) { // Event here with a breakpoint } } public class RoadPopulateEvent extends Event { public CubePos cubePos; private RoadPopulateEvent() {} public RoadPopulateEvent(CubePos cubePos) { this.cubePos = cubePos; } } And I call it like this: MinecraftForge.EVENT_BUS.post(new RoadPopulateEvent(new CubePos(cubeX, cubeY, cubeZ))); I checked if the post method is executed, and it's executed. But I don't know why the callback (onRoadPopulated) isn't called. What should I check next? Thanks.
×
×
  • Create New...

Important Information

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