Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ed.enderdeath.mod.AnvilDragon;
- import ed.enderdeath.mod.common.GuiHandler;
- import ed.enderdeath.mod.common.enderdeath;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.util.EnumFacing;
- import net.minecraft.world.World;
- public class BlockAnvilDragon extends Block
- {
- public BlockAnvilDragon() {
- super(Material.anvil);
- }
- public boolean onBlockActivated (World world, int x,int y,int z,EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ)
- {
- if (!world.isRemote)
- {
- player.openGui(enderdeath.instance, GuiHandler.guiCraftingTableID, world, x,y, z);
- }
- return true;
- }
- }
Add Comment
Please, Sign In to add comment