Guest User

Untitled

a guest
Jul 4th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. package ed.enderdeath.mod.AnvilDragon;
  2.  
  3. import ed.enderdeath.mod.common.GuiHandler;
  4. import ed.enderdeath.mod.common.enderdeath;
  5. import net.minecraft.block.Block;
  6. import net.minecraft.block.material.Material;
  7. import net.minecraft.entity.player.EntityPlayer;
  8. import net.minecraft.util.EnumFacing;
  9. import net.minecraft.world.World;
  10.  
  11. public class BlockAnvilDragon extends Block
  12. {
  13.  
  14. public BlockAnvilDragon() {
  15. super(Material.anvil);
  16. }
  17. public boolean onBlockActivated (World world, int x,int y,int z,EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ)
  18. {
  19. if (!world.isRemote)
  20. {
  21. player.openGui(enderdeath.instance, GuiHandler.guiCraftingTableID, world, x,y, z);
  22. }
  23. return true;
  24. }
  25. }
Add Comment
Please, Sign In to add comment