-
Notifications
You must be signed in to change notification settings - Fork 79
/
EventBlockBitModification.java
69 lines (57 loc) · 1.22 KB
/
EventBlockBitModification.java
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package mod.chiselsandbits.api;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.eventhandler.Cancelable;
import net.minecraftforge.fml.common.eventhandler.Event;
@Cancelable
public class EventBlockBitModification extends Event
{
private final World w;
private final BlockPos pos;
private final EntityPlayer player;
private final EnumHand hand;
private final ItemStack stackUsed;
private final boolean placement;
public EventBlockBitModification(
final World w,
final BlockPos pos,
final EntityPlayer player,
final EnumHand hand,
final ItemStack stackUsed,
final boolean placement )
{
this.w = w;
this.pos = pos;
this.player = player;
this.hand = hand;
this.stackUsed = stackUsed;
this.placement = placement;
}
public World getWorld()
{
return w;
}
public BlockPos getPos()
{
return pos;
}
public EntityPlayer getPlayer()
{
return player;
}
public EnumHand getHand()
{
return hand;
}
public ItemStack getItemUsed()
{
return stackUsed;
}
public boolean isPlacing()
{
return placement;
}
}