Files
Gadomancy/src/main/java/makeo/gadomancy/client/renderers/tile/RenderTileCapEldritch.java
T
Quetz4l 9e4292ef80 infusionClaw (#20)
* infusionClaw
* charging wand from vis net

* bs & sa + nei
* added nei to dependencies

* infusionClaw add desc to lang
2023-05-13 17:40:56 +02:00

33 lines
1.1 KiB
Java

package makeo.gadomancy.client.renderers.tile;
import net.minecraft.tileentity.TileEntity;
import makeo.gadomancy.common.data.config.ModConfig;
import thaumcraft.client.renderers.tile.TileEldritchCapRenderer;
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
* <p/>
* Created by HellFirePvP @ 10.11.2015 22:20
*/
public class RenderTileCapEldritch extends TileEldritchCapRenderer {
public RenderTileCapEldritch(String texture) {
super(texture);
}
@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);
}
}
}