Advertisement
Guest User

Untitled

a guest
Jul 27th, 2019
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. package deconstruction.common.block;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.block.material.Material;
  5. import net.minecraft.block.state.IBlockState;
  6. import net.minecraft.entity.player.EntityPlayer;
  7. import net.minecraft.util.EnumFacing;
  8. import net.minecraft.util.EnumHand;
  9. import net.minecraft.util.math.BlockPos;
  10. import net.minecraft.world.World;
  11.  
  12. public class BlockDeconTable extends Block {
  13.  
  14. private static final int GUI_ID = 1;
  15.  
  16. public BlockDeconTable() {
  17. super(Properties.create(Material.WOOD));
  18. }
  19.  
  20. public boolean onBlockActivated(IBlockState state, World worldIn, BlockPos pos, EntityPlayer player, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ){
  21. if(worldIn.isRemote) {
  22. return true;
  23. } else {
  24. //playerIn.displayGui(DeconTable.instance, GUI_ID, worldIn, pos.getX(), pos.getY(), pos.getZ());
  25. return true;
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement