Search in sources :

Example 1 with FissionTileEntity

use of minechem.tileentity.multiblock.fission.FissionTileEntity in project Minechem by iopleke.

the class TileEntityProxy method buildManagerBlock.

private TileEntity buildManagerBlock() {
    if (this.worldObj.getBlockMetadata(xCoord + managerXOffset, yCoord + managerYOffset, zCoord + managerZOffset) == 2) {
        FusionTileEntity fusion = new FusionTileEntity();
        fusion.setWorldObj(this.worldObj);
        fusion.zCoord = this.managerZOffset + zCoord;
        fusion.yCoord = this.managerYOffset + yCoord;
        fusion.xCoord = this.managerXOffset + xCoord;
        fusion.blockType = MinechemBlocksGeneration.fusion;
        worldObj.setTileEntity(xCoord + managerXOffset, yCoord + managerYOffset, zCoord + managerZOffset, fusion);
    }
    if (this.worldObj.getBlockMetadata(xCoord + managerXOffset, yCoord + managerYOffset, zCoord + managerZOffset) == 3) {
        FissionTileEntity fission = new FissionTileEntity();
        fission.setWorldObj(this.worldObj);
        fission.zCoord = this.managerZOffset + zCoord;
        fission.yCoord = this.managerYOffset + yCoord;
        fission.xCoord = this.managerXOffset + xCoord;
        fission.blockType = MinechemBlocksGeneration.fusion;
        worldObj.setTileEntity(xCoord + managerXOffset, yCoord + managerYOffset, zCoord + managerZOffset, fission);
    }
    return worldObj.getTileEntity(xCoord + managerXOffset, yCoord + managerYOffset, zCoord + managerZOffset);
}
Also used : FusionTileEntity(minechem.tileentity.multiblock.fusion.FusionTileEntity) FissionTileEntity(minechem.tileentity.multiblock.fission.FissionTileEntity)

Aggregations

FissionTileEntity (minechem.tileentity.multiblock.fission.FissionTileEntity)1 FusionTileEntity (minechem.tileentity.multiblock.fusion.FusionTileEntity)1