Search in sources :

Example 1 with TileEntityInfectedCrystallizeEnderCore

use of stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityInfectedCrystallizeEnderCore in project MorePlanets by SteveKunG.

the class DarkEnergyReceiverMultiblockRenderer method render.

public static void render(double x, double y, double z) {
    GlStateManager.disableDepth();
    GlStateManager.enableBlend();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 0.4F);
    TileEntityRendererDispatcher.instance.render(new TileEntityZeliusEgg(), x - 1, y - 1, z, 0.0F);
    GlStateManager.enableBlend();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 0.4F);
    TileEntityRendererDispatcher.instance.render(new TileEntityZeliusEgg(), x + 1, y - 1, z, 0.0F);
    GlStateManager.enableBlend();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 0.4F);
    TileEntityRendererDispatcher.instance.render(new TileEntityZeliusEgg(), x, y - 1, z + 1, 0.0F);
    GlStateManager.enableBlend();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 0.4F);
    TileEntityRendererDispatcher.instance.render(new TileEntityZeliusEgg(), x, y - 1, z - 1, 0.0F);
    GlStateManager.enableBlend();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 0.4F);
    GlStateManager.pushMatrix();
    GlStateManager.translate(x, y - 2, z);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_SLIME_BLOCK.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x, y - 2, z + 2);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_SLIME_BLOCK.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 1, y - 2, z + 1);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_SLIME_BLOCK.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 1, y - 2, z + 1);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_SLIME_BLOCK.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 1, y - 2, z);
    ClientRendererUtil.renderModel(MPBlocks.DUNGEON_GLOWSTONE.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 1, y - 2, z + 2);
    ClientRendererUtil.renderModel(MPBlocks.DUNGEON_GLOWSTONE.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 1, y - 2, z);
    ClientRendererUtil.renderModel(MPBlocks.DUNGEON_GLOWSTONE.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 1, y - 2, z + 2);
    ClientRendererUtil.renderModel(MPBlocks.DUNGEON_GLOWSTONE.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 3, y - 1, z + 4);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 3, y, z + 4);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getStateFromMeta(1));
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 3, y + 1, z + 4);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 3, y + 2, z + 4);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getStateFromMeta(2));
    GlStateManager.popMatrix();
    TileEntityRendererDispatcher.instance.render(new TileEntityInfectedCrystallizeEnderCore(), x + 3, y + 2, z + 3, 0.0F);
    GlStateManager.enableBlend();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 0.4F);
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 3, y - 1, z + 4);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 3, y, z + 4);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getStateFromMeta(1));
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 3, y + 1, z + 4);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 3, y + 2, z + 4);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getStateFromMeta(2));
    GlStateManager.popMatrix();
    TileEntityRendererDispatcher.instance.render(new TileEntityInfectedCrystallizeEnderCore(), x - 3, y + 2, z + 3, 0.0F);
    GlStateManager.enableBlend();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 0.4F);
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 3, y - 1, z - 2);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 3, y, z - 2);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getStateFromMeta(1));
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 3, y + 1, z - 2);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x - 3, y + 2, z - 2);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getStateFromMeta(2));
    GlStateManager.popMatrix();
    TileEntityRendererDispatcher.instance.render(new TileEntityInfectedCrystallizeEnderCore(), x - 3, y + 2, z - 3, 0.0F);
    GlStateManager.enableBlend();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 0.4F);
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 3, y - 1, z - 2);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 3, y, z - 2);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getStateFromMeta(1));
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 3, y + 1, z - 2);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getDefaultState());
    GlStateManager.popMatrix();
    GlStateManager.pushMatrix();
    GlStateManager.translate(x + 3, y + 2, z - 2);
    ClientRendererUtil.renderModel(DionaBlocks.INFECTED_CRYSTALLIZE_PART.getStateFromMeta(2));
    GlStateManager.popMatrix();
    TileEntityRendererDispatcher.instance.render(new TileEntityInfectedCrystallizeEnderCore(), x + 3, y + 2, z - 3, 0.0F);
    GlStateManager.enableDepth();
}
Also used : TileEntityInfectedCrystallizeEnderCore(stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityInfectedCrystallizeEnderCore) TileEntityZeliusEgg(stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityZeliusEgg)

Aggregations

TileEntityInfectedCrystallizeEnderCore (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityInfectedCrystallizeEnderCore)1 TileEntityZeliusEgg (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityZeliusEgg)1