buildcraft/api/buildcraft/api/events/BlockPlacedDownEvent.java

33 lines
878 B
Java
Raw Normal View History

2014-09-20 11:30:33 +02:00
/**
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* The BuildCraft API is distributed under the terms of the MIT License.
* Please check the contents of the license, which should be located
* as "LICENSE.API" in the BuildCraft source code distribution.
2014-09-20 11:30:33 +02:00
*/
2014-09-10 14:43:06 +02:00
package buildcraft.api.events;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
2014-09-10 14:56:17 +02:00
import cpw.mods.fml.common.eventhandler.Cancelable;
import cpw.mods.fml.common.eventhandler.Event;
2014-09-10 14:43:06 +02:00
@Cancelable
public class BlockPlacedDownEvent extends Event {
public EntityPlayer player;
public Block block;
public int meta, x, y, z;
2014-09-10 14:43:06 +02:00
public BlockPlacedDownEvent(EntityPlayer player, Block block, int meta, int x, int y, int z) {
2014-09-10 14:43:06 +02:00
this.player = player;
this.block = block;
this.meta = meta;
this.x = x;
this.y = y;
this.z = z;
2014-09-10 14:43:06 +02:00
}
}