Search in sources :

Example 1 with TileEntityZeliusEgg

use of stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityZeliusEgg 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)

Example 2 with TileEntityZeliusEgg

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

the class RenderZeliusEgg method renderItem.

@Override
public void renderItem(ItemStack itemStack, ItemCameraTransforms.TransformType type) {
    ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityZeliusEgg());
    GlStateManager.enableBlend();
}
Also used : TileEntityZeliusEgg(stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityZeliusEgg)

Example 3 with TileEntityZeliusEgg

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

the class TileEntityItemStackRendererMP method renderByItem.

@Override
public void renderByItem(ItemStack itemStack) {
    Block block = Block.getBlockFromItem(itemStack.getItem());
    if (block == DionaBlocks.DIONA_ANCIENT_CHEST) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityDionaAncientChest());
    } else if (block == DionaBlocks.DIONA_TREASURE_CHEST) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityDionaTreasureChest());
    } else if (block == ChalosBlocks.CHALOS_ANCIENT_CHEST) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityChalosAncientChest());
    } else if (block == ChalosBlocks.CHALOS_TREASURE_CHEST) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityChalosTreasureChest());
    } else if (block == DionaBlocks.ZELIUS_EGG) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityZeliusEgg());
        GlStateManager.enableBlend();
    } else if (block == DionaBlocks.LARGE_INFECTED_CRYSTALLIZE) {
        TileEntityLargeInfectedCrystallizeRenderer.INSTANCE.render();
    } else if (block == MPBlocks.DARK_ENERGY_RECEIVER) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityDarkEnergyReceiver());
    } else if (itemStack.getItem() == DionaItems.INFECTED_CRYSTALLIZE_BOMB) {
        RenderInfectedCrystallizeBomb.INSTANCE.render();
    } else if (block == NibiruBlocks.NIBIRU_ANCIENT_CHEST) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityNibiruAncientChest());
    } else if (block == NibiruBlocks.NIBIRU_TREASURE_CHEST) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityNibiruTreasureChest());
    } else if (block == ChalosBlocks.CHEESE_SPORE_CHEST) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityCheeseSporeChest());
    } else if (block == NibiruBlocks.INFECTED_CHEST) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityInfectedChest());
    } else if (block == NibiruBlocks.MULTALIC_CRYSTAL) {
        TileEntityMultalicCrystalRenderer.INSTANCE.render();
    } else if (block == DionaBlocks.DARK_ENERGY_CORE) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityDarkEnergyCore());
        GlStateManager.enableBlend();
    } else if (block == NibiruBlocks.ALIEN_BERRY_CHEST) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityAlienBerryChest());
    } else if (block == NibiruBlocks.JUICER_EGG) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityJuicerEgg());
        TileEntityJuicerEggRenderer.renderItem(null, true);
    } else if (block == NibiruBlocks.NUCLEAR_WASTE_TANK) {
        TileEntityNuclearWasteTankRenderer.INSTANCE.render();
    } else if (block == NibiruBlocks.VEIN_FRAME) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityVeinFrame());
        GlStateManager.enableBlend();
    } else if (block == DionaBlocks.DARK_ENERGY_GENERATOR) {
        TileEntityDarkEnergyGeneratorRenderer.INSTANCE.render();
    } else if (block == MPBlocks.BLACK_HOLE_STORAGE) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityBlackHoleStorage());
        GlStateManager.enableBlend();
    } else if (block == MPBlocks.ALIEN_DEFENDER_BEACON) {
        ClientRegisterHelper.registerTileEntityItemStackRendering(new TileEntityAlienDefenderBeacon());
        GlStateManager.enableBlend();
        GlStateManager.enableCull();
    } else if (block == MPBlocks.SHIELD_GENERATOR) {
        TileEntityShieldGeneratorRenderer.INSTANCE.render();
    } else {
        this.old.renderByItem(itemStack);
    }
}
Also used : TileEntityCheeseSporeChest(stevekung.mods.moreplanets.module.planets.chalos.tileentity.TileEntityCheeseSporeChest) TileEntityChalosTreasureChest(stevekung.mods.moreplanets.module.planets.chalos.tileentity.TileEntityChalosTreasureChest) TileEntityDionaTreasureChest(stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDionaTreasureChest) TileEntityDarkEnergyReceiver(stevekung.mods.moreplanets.tileentity.TileEntityDarkEnergyReceiver) TileEntityDionaAncientChest(stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDionaAncientChest) TileEntityDarkEnergyCore(stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDarkEnergyCore) TileEntityBlackHoleStorage(stevekung.mods.moreplanets.tileentity.TileEntityBlackHoleStorage) TileEntityChalosAncientChest(stevekung.mods.moreplanets.module.planets.chalos.tileentity.TileEntityChalosAncientChest) Block(net.minecraft.block.Block) TileEntityAlienDefenderBeacon(stevekung.mods.moreplanets.tileentity.TileEntityAlienDefenderBeacon) TileEntityZeliusEgg(stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityZeliusEgg)

Aggregations

TileEntityZeliusEgg (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityZeliusEgg)3 Block (net.minecraft.block.Block)1 TileEntityChalosAncientChest (stevekung.mods.moreplanets.module.planets.chalos.tileentity.TileEntityChalosAncientChest)1 TileEntityChalosTreasureChest (stevekung.mods.moreplanets.module.planets.chalos.tileentity.TileEntityChalosTreasureChest)1 TileEntityCheeseSporeChest (stevekung.mods.moreplanets.module.planets.chalos.tileentity.TileEntityCheeseSporeChest)1 TileEntityDarkEnergyCore (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDarkEnergyCore)1 TileEntityDionaAncientChest (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDionaAncientChest)1 TileEntityDionaTreasureChest (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityDionaTreasureChest)1 TileEntityInfectedCrystallizeEnderCore (stevekung.mods.moreplanets.module.planets.diona.tileentity.TileEntityInfectedCrystallizeEnderCore)1 TileEntityAlienDefenderBeacon (stevekung.mods.moreplanets.tileentity.TileEntityAlienDefenderBeacon)1 TileEntityBlackHoleStorage (stevekung.mods.moreplanets.tileentity.TileEntityBlackHoleStorage)1 TileEntityDarkEnergyReceiver (stevekung.mods.moreplanets.tileentity.TileEntityDarkEnergyReceiver)1