Class StructureEvent.StructureElementVisitedEvent

java.lang.Object
cpw.mods.fml.common.eventhandler.Event
com.gtnewhorizon.structurelib.StructureEvent
com.gtnewhorizon.structurelib.StructureEvent.StructureElementVisitedEvent
Enclosing class:
StructureEvent

public static final class StructureEvent.StructureElementVisitedEvent extends StructureEvent
Fired just before any structure element is visited.
  • Method Details

    • fireEvent

      public static void fireEvent(World world, int x, int y, int z, int a, int b, int c, IStructureElement<?> element)
      Fire this event on MinecraftForge.EVENT_BUS by populating it with given arguments. Do nothing if instrumenting isn't enabled for current thread.

      Any Exception thrown by event listeners will be logged and ignored. Error will be propagated as is.

    • getA

      public int getA()
      A position in ABC coordinate, relative to (0,0,0) in the piece, i.e. without baseOffset

      Submit a feature request if you need the baseOffset.

    • getB

      public int getB()
      B position in ABC coordinate, relative to (0,0,0) in the piece, i.e. without baseOffset

      Submit a feature request if you need the baseOffset.

    • getC

      public int getC()
      C position in ABC coordinate, relative to (0,0,0) in the piece, i.e. without baseOffset

      Submit a feature request if you need the baseOffset.

    • getElement

      public IStructureElement<?> getElement()
      Element being visited.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getWorld

      public World getWorld()
      Location of this event.
    • getX

      public int getX()
      Location of this event. Absolute world coordinate.
    • getY

      public int getY()
      Location of this event. Absolute world coordinate.
    • getZ

      public int getZ()
      Location of this event. Absolute world coordinate.