Search in sources :

Example 1 with GhostBlockTileEntity

use of minechem.tileentity.multiblock.ghostblock.GhostBlockTileEntity in project Minechem by iopleke.

the class BlueprintProjectorTileEntity method createGhostBlock.

private void createGhostBlock(int x, int y, int z, int blockID) {
    worldObj.setBlock(x, y, z, MinechemBlocksGeneration.ghostBlock, 0, 3);
    TileEntity tileEntity = worldObj.getTileEntity(x, y, z);
    if (tileEntity instanceof GhostBlockTileEntity) {
        GhostBlockTileEntity ghostBlock = (GhostBlockTileEntity) tileEntity;
        ghostBlock.setBlueprintAndID(blueprint, blockID);
    }
}
Also used : GhostBlockTileEntity(minechem.tileentity.multiblock.ghostblock.GhostBlockTileEntity) FusionTileEntity(minechem.tileentity.multiblock.fusion.FusionTileEntity) MultiBlockTileEntity(minechem.tileentity.multiblock.MultiBlockTileEntity) MinechemTileEntity(minechem.tileentity.prefab.MinechemTileEntity) TileEntity(net.minecraft.tileentity.TileEntity) GhostBlockTileEntity(minechem.tileentity.multiblock.ghostblock.GhostBlockTileEntity)

Aggregations

MultiBlockTileEntity (minechem.tileentity.multiblock.MultiBlockTileEntity)1 FusionTileEntity (minechem.tileentity.multiblock.fusion.FusionTileEntity)1 GhostBlockTileEntity (minechem.tileentity.multiblock.ghostblock.GhostBlockTileEntity)1 MinechemTileEntity (minechem.tileentity.prefab.MinechemTileEntity)1 TileEntity (net.minecraft.tileentity.TileEntity)1