Package forestry.core.gadgets

Examples of forestry.core.gadgets.TileForestry


    if (energyManager.getTotalEnergyStored() == 0) {
      ITileStructure central = getCentralTE();
      if (!(central instanceof TileForestry))
        return;

      TileForestry centralHousing = (TileForestry) central;
      centralHousing.setErrorState(EnumErrorCode.NOPOWER);
      return;
    }

    if (activationDelay > 0) {
      activationDelay--;
View Full Code Here


  }

  private void onAccessSwitch(PacketCoordinates packet, EntityPlayer playerEntity) {
    assert FMLCommonHandler.instance().getEffectiveSide().isServer();

    TileForestry tile = (TileForestry) playerEntity.worldObj.getTileEntity(packet.posX, packet.posY, packet.posZ);
    if (tile == null)
      return;

    tile.switchAccessRule(playerEntity);
  }
View Full Code Here

TOP

Related Classes of forestry.core.gadgets.TileForestry

Copyright © 2018 www.massapicom. 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.