Package mekanism.common.tile

Examples of mekanism.common.tile.TileEntityElectricChest.canAccess()


      {
        TileEntityElectricChest electricChest = (TileEntityElectricChest)tileEntity;

        if(!(entityplayer.isSneaking() || world.isSideSolid(x, y + 1, z, ForgeDirection.DOWN)))
        {
          if(electricChest.canAccess())
          {
            MekanismUtils.openElectricChestGui((EntityPlayerMP)entityplayer, electricChest, null, true);
          }
          else if(!electricChest.authenticated)
          {
View Full Code Here


    {
      return blockHardness;
    }
    else {
      TileEntityElectricChest tileEntity = (TileEntityElectricChest)world.getTileEntity(x, y, z);
      return tileEntity.canAccess() ? 3.5F : -1;
    }
  }

  @Override
  public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z, boolean willHarvest)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.