Package com.gtnewhorizon.structurelib
Class StructureEvent.StructureElementVisitedEvent
java.lang.Object
cpw.mods.fml.common.eventhandler.Event
com.gtnewhorizon.structurelib.StructureEvent
com.gtnewhorizon.structurelib.StructureEvent.StructureElementVisitedEvent
- Enclosing class:
StructureEvent
Fired just before any structure element is visited.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gtnewhorizon.structurelib.StructureEvent
StructureEvent.StructureElementVisitedEventNested classes/interfaces inherited from class cpw.mods.fml.common.eventhandler.Event
Event.HasResult, Event.Result -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfireEvent(World world, int x, int y, int z, int a, int b, int c, IStructureElement<?> element) Fire this event onMinecraftForge.EVENT_BUSby populating it with given arguments.intgetA()A position in ABC coordinate, relative to (0,0,0) in the piece, i.e.intgetB()B position in ABC coordinate, relative to (0,0,0) in the piece, i.e.intgetC()C position in ABC coordinate, relative to (0,0,0) in the piece, i.e.Element being visited.getWorld()Location of this event.intgetX()Location of this event.intgetY()Location of this event.intgetZ()Location of this event.toString()Methods inherited from class com.gtnewhorizon.structurelib.StructureEvent
getInstrumentIdentifierMethods inherited from class cpw.mods.fml.common.eventhandler.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Method Details
-
fireEvent
public static void fireEvent(World world, int x, int y, int z, int a, int b, int c, IStructureElement<?> element) -
getA
public int getA()A position in ABC coordinate, relative to (0,0,0) in the piece, i.e. without baseOffsetSubmit 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 baseOffsetSubmit 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 baseOffsetSubmit a feature request if you need the baseOffset.
-
getElement
Element being visited. -
toString
-
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.
-