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
public static final class StructureEvent.StructureElementVisitedEvent extends StructureEvent
Fired just before any structure element is visited.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.gtnewhorizon.structurelib.StructureEvent
StructureEvent.StructureElementVisitedEvent
-
Nested classes/interfaces inherited from class cpw.mods.fml.common.eventhandler.Event
Event.HasResult, Event.Result
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.IStructureElement<?>getElement()Element being visited.WorldgetWorld()Location of this event.intgetX()Location of this event.intgetY()Location of this event.intgetZ()Location of this event.java.lang.StringtoString()-
Methods inherited from class com.gtnewhorizon.structurelib.StructureEvent
getInstrumentIdentifier
-
Methods inherited from class cpw.mods.fml.common.eventhandler.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
-
-
-
Method Detail
-
fireEvent
public static void fireEvent(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. Do nothing if instrumenting isn't enabled for current thread.Any
Exceptionthrown by event listeners will be logged and ignored.Errorwill be propagated as is.
-
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
public IStructureElement<?> getElement()
Element being visited.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.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.
-
-