Class ForgeEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
noppes.npcs.api.event.CustomNPCsEvent
noppes.npcs.api.event.ForgeEvent
Direct Known Subclasses:
ForgeEvent.EntityEvent, ForgeEvent.InitEvent, ForgeEvent.LevelEvent

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.EntityJoinLevelEvent becomes entityEventEntityJoinLevelEvent
- 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 
    This event is used for every forge event which extends EntityEvent
    EventyEvent
    LivingEvent
    PlayerEvent
    static class 
    init
    The init event has no forge event
    static class 
    This event is used for every forge event which extends LevelEvent
    LevelEvent

    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

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraftforge.eventbus.api.Event
     

    Fields inherited from class noppes.npcs.api.event.CustomNPCsEvent

    API
  • Constructor Summary

    Constructors
    Constructor
    Description
    ForgeEvent(net.minecraftforge.eventbus.api.Event event)
     
  • Method Summary

    Methods inherited from class net.minecraftforge.eventbus.api.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.eventbus.api.Event event
  • Constructor Details

    • ForgeEvent

      public ForgeEvent(net.minecraftforge.eventbus.api.Event event)