Guest User

Untitled

a guest
Jul 13th, 2016
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  18. @Override
  19. public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)
  20. {
  21. System.out.println("Test onBlockActivated");
  22. if (!world.isRemote)
  23. {
  24. System.out.println("je suis dans la condition world.IsRemote");
  25. player.openGui(enderdeath.instance, GuiHandler.guiCraftingTableID, world, x, y, z);
  26. }
  27. return true;
  28. }
  29.  
  30. }
RAW Paste Data