Ejemplo n.º 1
0
  public boolean onBlockActivated(
      World worldIn,
      BlockPos pos,
      IBlockState state,
      Player playerIn,
      EnumFacing side,
      float hitX,
      float hitY,
      float hitZ) {
    if (worldIn.isRemote) {
      return true;
    } else {
      TileEntity tileentity = worldIn.getTileEntity(pos);

      if (tileentity instanceof TileEntityBeacon) {
        playerIn.displayGUIChest((TileEntityBeacon) tileentity);
        playerIn.triggerAchievement(StatList.field_181730_N);
      }

      return true;
    }
  }