private TileEntity buildManagerBlock(LocalPosition position) { BlueprintBlock managerBlock = blueprint.getManagerBlock(); if (managerBlock != null) { Pos3 worldPos = position.getLocalPos( blueprint.getManagerPosX(), blueprint.getManagerPosY(), blueprint.getManagerPosZ()); worldObj.setBlockAndMetadataWithNotify( worldPos.x, worldPos.y, worldPos.z, managerBlock.block.blockID, managerBlock.metadata, 3); return worldObj.getBlockTileEntity(worldPos.x, worldPos.y, worldPos.z); } else { return null; } }
private boolean isManagerBlock(int x, int y, int z) { return x == blueprint.getManagerPosX() && y == blueprint.getManagerPosY() && z == blueprint.getManagerPosZ(); }