aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/events/BlockScanningEvent.java
blob: 85d2e3e07a893d8a74629447cbdd941f87e5f07f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package gregtech.api.events;

import cpw.mods.fml.common.eventhandler.Cancelable;
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.event.world.WorldEvent;

@Cancelable
public class BlockScanningEvent extends WorldEvent {

    public final EntityPlayer mPlayer;
    public final int mX, mY, mZ, mScanLevel;
    public final ArrayList<String> mList;
    public final byte 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,
            byte aSide,
            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 = aSide;
        mX = aX;
        mY = aY;
        mZ = aZ;
        mClickX = aClickX;
        mClickY = aClickY;
        mClickZ = aClickZ;
    }
}