Package forestry.core.utils.Schemata

Examples of forestry.core.utils.Schemata.EnumStructureBlock


          int z = structureTile.zCoord + k + offsetZ;

          if (!structureTile.getWorldObj().blockExists(x, y, z))
            return EnumStructureState.INDETERMINATE;

          EnumStructureBlock required = schemata.getAt(i, j, k, rotate);

          if (required == EnumStructureBlock.ANY)
            continue;

          TileEntity tile = structureTile.getWorldObj().getTileEntity(x, y, z);
View Full Code Here


          int z = structureTile.zCoord + k + offsetZ;

          if (!structureTile.getWorldObj().blockExists(x, y, z))
            return EnumStructureState.INDETERMINATE;

          EnumStructureBlock required = schemata.getAt(i, j, k, rotate);
          if (required == EnumStructureBlock.ANY)
            continue;

          TileEntity tile = structureTile.getWorldObj().getTileEntity(x, y, z);
          Block block = structureTile.getWorldObj().getBlock(x, y, z);
View Full Code Here

          ITileStructure part = (ITileStructure) tile;
          if (!part.getTypeUID().equals(getTypeUID()))
            continue;

          part.setCentralTE((TileEntity) structure);
          EnumStructureBlock type = schemata.getAt(i, j, k, isRotated);
          if (metaOnValid.containsKey(type)) {
            structureTile.getWorldObj().setBlockMetadataWithNotify(x, y, z, metaOnValid.get(type), Defaults.FLAG_BLOCK_SYNCH);
            structureTile.getWorldObj().markBlockForUpdate(x, y, z);
          }
        }
View Full Code Here

TOP

Related Classes of forestry.core.utils.Schemata.EnumStructureBlock

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.