diff --git a/src/main/java/makeo/gadomancy/client/ClientProxy.java b/src/main/java/makeo/gadomancy/client/ClientProxy.java index 58797f6..4930e68 100644 --- a/src/main/java/makeo/gadomancy/client/ClientProxy.java +++ b/src/main/java/makeo/gadomancy/client/ClientProxy.java @@ -20,15 +20,7 @@ import makeo.gadomancy.client.renderers.item.ItemRenderFamiliar; import makeo.gadomancy.client.renderers.item.ItemRenderRemoteJar; import makeo.gadomancy.client.renderers.item.ItemRenderStoneMachine; import makeo.gadomancy.client.renderers.item.ItemRenderTileEntity; -import makeo.gadomancy.client.renderers.tile.RenderTileArcaneDropper; -import makeo.gadomancy.client.renderers.tile.RenderTileExtendedNode; -import makeo.gadomancy.client.renderers.tile.RenderTileExtendedNodeJar; -import makeo.gadomancy.client.renderers.tile.RenderTileInfusionClaw; -import makeo.gadomancy.client.renderers.tile.RenderTileManipulationFocus; -import makeo.gadomancy.client.renderers.tile.RenderTileManipulatorPillar; -import makeo.gadomancy.client.renderers.tile.RenderTileNodeManipulator; -import makeo.gadomancy.client.renderers.tile.RenderTileRemoteJar; -import makeo.gadomancy.client.renderers.tile.RenderTileStickyJar; +import makeo.gadomancy.client.renderers.tile.*; import makeo.gadomancy.common.CommonProxy; import makeo.gadomancy.common.blocks.tiles.TileAdditionalEldritchPortal; import makeo.gadomancy.common.blocks.tiles.TileArcaneDropper; @@ -45,6 +37,7 @@ import makeo.gadomancy.common.registration.RegisteredItems; import makeo.gadomancy.common.utils.Injector; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.Render; +import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher; import net.minecraft.client.resources.IResourceManager; import net.minecraft.client.resources.SimpleReloadableResourceManager; import net.minecraft.entity.Entity; @@ -60,6 +53,7 @@ import thaumcraft.client.renderers.entity.RenderGolemBase; import thaumcraft.client.renderers.tile.TileEldritchPortalRenderer; import thaumcraft.common.config.ConfigBlocks; import thaumcraft.common.entities.golems.EntityGolemBase; +import thaumcraft.common.tiles.TileEldritchObelisk; import java.util.List; @@ -109,6 +103,8 @@ public class ClientProxy extends CommonProxy { ClientRegistry.bindTileEntitySpecialRenderer(TileAdditionalEldritchPortal.class, new TileEldritchPortalRenderer()); + ClientRegistry.bindTileEntitySpecialRenderer(TileEldritchObelisk.class, new RenderTileObelisk()); + //Items TileArcaneDropper fakeTile = new TileArcaneDropper(); fakeTile.blockMetadata = 8 | ForgeDirection.SOUTH.ordinal(); diff --git a/src/main/java/makeo/gadomancy/client/renderers/tile/RenderTileObelisk.java b/src/main/java/makeo/gadomancy/client/renderers/tile/RenderTileObelisk.java new file mode 100644 index 0000000..f7e27ea --- /dev/null +++ b/src/main/java/makeo/gadomancy/client/renderers/tile/RenderTileObelisk.java @@ -0,0 +1,28 @@ +package makeo.gadomancy.client.renderers.tile; + +import makeo.gadomancy.common.data.ModConfig; +import net.minecraft.tileentity.TileEntity; +import thaumcraft.client.renderers.tile.TileEldritchObeliskRenderer; +import thaumcraft.common.config.Config; + +/** + * This class is part of the Gadomancy Mod + * Gadomancy is Open Source and distributed under the + * GNU LESSER GENERAL PUBLIC LICENSE + * for more read the LICENSE file + *

+ * Created by makeo @ 10.11.2015 21:59 + */ +public class RenderTileObelisk extends TileEldritchObeliskRenderer { + @Override + public void renderTileEntityAt(TileEntity te, double x, double y, double z, float f) { + if(te.getWorldObj().provider.dimensionId == ModConfig.dimOuterId) { + int old = Config.dimensionOuterId; + Config.dimensionOuterId = ModConfig.dimOuterId; + super.renderTileEntityAt(te, x, y, z, f); + Config.dimensionOuterId = old; + } else { + super.renderTileEntityAt(te, x, y, z, f); + } + } +}