Files
Gadomancy/src/main/java/makeo/gadomancy/client/renderers/tile/RenderTileExtendedNode.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

31 lines
1.2 KiB
Java

package makeo.gadomancy.client.renderers.tile;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import makeo.gadomancy.common.blocks.tiles.TileExtendedNode;
import makeo.gadomancy.common.node.ExtendedNodeType;
/**
* 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 HellFirePvP @ 22.10.2015 19:44
*/
public class RenderTileExtendedNode extends TileEntitySpecialRenderer {
@Override
public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float partialTicks) {
if (!(tile instanceof TileExtendedNode)) return;
TileExtendedNode node = (TileExtendedNode) tile;
double rX = node.xCoord + 0.5;
double rY = node.yCoord + 0.5;
double rZ = node.zCoord + 0.5;
float size = 1.0F;
if (node.getExtendedNodeType() != null && node.getExtendedNodeType() == ExtendedNodeType.GROWING) {
size *= 1.5F;
}
RenderTileNodeBasic.renderTileEntityAt(tile, rX, rY, rZ, partialTicks, size);
}
}