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.