aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/events/BlockScanningEvent.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/events/BlockScanningEvent.java')
-rw-r--r--src/main/java/gregtech/api/events/BlockScanningEvent.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/events/BlockScanningEvent.java b/src/main/java/gregtech/api/events/BlockScanningEvent.java
new file mode 100644
index 0000000000..bc2a33bcea
--- /dev/null
+++ b/src/main/java/gregtech/api/events/BlockScanningEvent.java
@@ -0,0 +1,47 @@
+package gregtech.api.events;
+
+import java.util.ArrayList;
+
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.event.world.WorldEvent;
+
+import cpw.mods.fml.common.eventhandler.Cancelable;
+
+@Cancelable
+public class BlockScanningEvent extends WorldEvent {
+
+ public final EntityPlayer mPlayer;
+ public final int mX, mY, mZ, mScanLevel;
+ public final ArrayList<String> mList;
+ public final ForgeDirection mSide;
+ public final float mClickX, mClickY, mClickZ;
+ public final TileEntity mTileEntity;
+ public final Block mBlock;
+
+ /**
+ * used to determine the amount of Energy this Scan is costing.
+ */
+ public int mEUCost = 0;
+
+ public BlockScanningEvent(World aWorld, EntityPlayer aPlayer, int aX, int aY, int aZ, ForgeDirection side,
+ int aScanLevel, Block aBlock, TileEntity aTileEntity, ArrayList<String> aList, float aClickX, float aClickY,
+ float aClickZ) {
+ super(aWorld);
+ mPlayer = aPlayer;
+ mScanLevel = aScanLevel;
+ mTileEntity = aTileEntity;
+ mBlock = aBlock;
+ mList = aList;
+ mSide = side;
+ mX = aX;
+ mY = aY;
+ mZ = aZ;
+ mClickX = aClickX;
+ mClickY = aClickY;
+ mClickZ = aClickZ;
+ }
+}