/**
* Copyright (c) Lambda Innovation, 2013-2016
* This file is part of the AcademyCraft mod.
* https://github.com/LambdaInnovation/AcademyCraft
* Licensed under GPLv3, see project root for more information.
*/
package cn.academy.energy.client.render.block;
import cn.academy.core.Resources;
import cn.academy.energy.block.wind.TileWindGenBase;
import cn.lambdalib.multiblock.RenderBlockMultiModel;
import cn.lambdalib.util.deprecated.TileEntityModelCustom;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
/**
* @author WeAthFolD
*/
public class RenderWindGenBase extends RenderBlockMultiModel {
private ResourceLocation
TEX_NORMAL = Resources.getTexture("models/windgen_base"),
TEX_DISABLED = Resources.getTexture("models/windgen_base_disabled");
public RenderWindGenBase() {
super(new TileEntityModelCustom(Resources.getModel("windgen_base")),
null);
}
@Override
public void drawAtOrigin(TileEntity te) {
TileWindGenBase tile = (TileWindGenBase) te;
this.tex = tile.isComplete() ? TEX_NORMAL : TEX_DISABLED;
super.drawAtOrigin(te);
}
}