mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-27 15:23:22 +00:00
* infusionClaw * charging wand from vis net * bs & sa + nei * added nei to dependencies * infusionClaw add desc to lang
31 lines
1.2 KiB
Java
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);
|
|
}
|
|
}
|