Package noppes.npcs.api.event
Class ForgeEvent
java.lang.Object
net.minecraftforge.fml.common.eventhandler.Event
noppes.npcs.api.event.CustomNPCsEvent
noppes.npcs.api.event.ForgeEvent
- Direct Known Subclasses:
ForgeEvent.EntityEvent
,ForgeEvent.InitEvent
,ForgeEvent.WorldEvent
public class ForgeEvent extends CustomNPCsEvent
Called for most Forge events. For the events I use the forges name and make the first letter lowercase.
Eg:
- EntityEvent.EntityJoinWorldEvent becomes entityEventEntityJoinWorldEvent
- PlayerEvent.StartTracking becomes playerEventStartTracking
- etc
Note that these events can change anytime and that I have no control over these. Use at own risk
Eg:
- EntityEvent.EntityJoinWorldEvent becomes entityEventEntityJoinWorldEvent
- PlayerEvent.StartTracking becomes playerEventStartTracking
- etc
Note that these events can change anytime and that I have no control over these. Use at own risk
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ForgeEvent.EntityEvent
This event is used for every forge event which extends EntityEvent
EventyEvent
LivingEvent
PlayerEventstatic class
ForgeEvent.InitEvent
init
The init event has no forge eventstatic class
ForgeEvent.WorldEvent
This event is used for every forge event which extends WorldEvent
WorldEventNested classes/interfaces inherited from class net.minecraftforge.fml.common.eventhandler.Event
net.minecraftforge.fml.common.eventhandler.Event.HasResult, net.minecraftforge.fml.common.eventhandler.Event.Result
-
Field Summary
Fields Modifier and Type Field Description net.minecraftforge.fml.common.eventhandler.Event
event
Fields inherited from class noppes.npcs.api.event.CustomNPCsEvent
API
-
Constructor Summary
Constructors Constructor Description ForgeEvent(net.minecraftforge.fml.common.eventhandler.Event event)
-
Method Summary
Methods inherited from class net.minecraftforge.fml.common.eventhandler.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
event
public final net.minecraftforge.fml.common.eventhandler.Event event
-
-
Constructor Details
-
ForgeEvent
public ForgeEvent(net.minecraftforge.fml.common.eventhandler.Event event)
-