Class WorldEvent.ScriptTriggerEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
noppes.npcs.api.event.CustomNPCsEvent
noppes.npcs.api.event.WorldEvent
noppes.npcs.api.event.WorldEvent.ScriptTriggerEvent
Enclosing class:
WorldEvent

public static class WorldEvent.ScriptTriggerEvent extends WorldEvent
  • Nested Class Summary

    Nested classes/interfaces inherited from class noppes.npcs.api.event.WorldEvent

    WorldEvent.ScriptTriggerEvent

    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 Object[]
     
    final IEntity
    Can be null, if player it will call the player scripts too, if npc it will call the npc scripts
    final int
     
    final IPos
    If pos is a Script Block or Door it will call their scripts

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

    world

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

    API
  • Constructor Summary

    Constructors
    Constructor
    Description
    ScriptTriggerEvent(int id, IWorld level, IPos pos, IEntity entity, Object[] arguments)
     
  • 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

    • arguments

      public final Object[] arguments
    • pos

      public final IPos pos
      If pos is a Script Block or Door it will call their scripts
    • entity

      public final IEntity entity
      Can be null, if player it will call the player scripts too, if npc it will call the npc scripts
    • id

      public final int id
  • Constructor Details

    • ScriptTriggerEvent

      public ScriptTriggerEvent(int id, IWorld level, IPos pos, IEntity entity, Object[] arguments)