Aidan Brady | 670990e | 2013-04-19 15:43:00 -0400 | [diff] [blame] | 1 | package ic2.api.event; |
| 2 | |
| 3 | import net.minecraft.world.World; |
| 4 | import net.minecraftforge.event.Cancelable; |
| 5 | import net.minecraftforge.event.world.WorldEvent; |
| 6 | |
| 7 | @Cancelable |
| 8 | public class PaintEvent extends WorldEvent { |
| 9 | // target block |
| 10 | public final int x; |
| 11 | public final int y; |
| 12 | public final int z; |
| 13 | public final int side; |
| 14 | |
| 15 | // color to paint the block |
| 16 | public final int color; |
| 17 | |
| 18 | // set to true to confirm the operation |
| 19 | public boolean painted = false; |
| 20 | |
| 21 | public PaintEvent(World world, int x, int y, int z, int side, int color) { |
| 22 | super(world); |
| 23 | |
| 24 | this.x = x; |
| 25 | this.y = y; |
| 26 | this.z = z; |
| 27 | this.side = side; |
| 28 | this.color = color; |
| 29 | } |
| 30 | } |