cn.academy.core.client.render.RenderMagInducer.java Source code

Java tutorial

Introduction

Here is the source code for cn.academy.core.client.render.RenderMagInducer.java

Source

/**
 * Copyright (c) Lambda Innovation, 2013-2015
 * ??Lambda Innovation
 * http://www.lambdacraft.cn/
 *
 * AcademyCraft is open-source, and it is distributed under 
 * the terms of GNU General Public License. You can modify
 * and distribute freely as long as you follow the license.
 * AcademyCraft??GNU???
 * ????
 * http://www.gnu.org/licenses/gpl.html
 */
package cn.academy.core.client.render;

import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;

import org.lwjgl.opengl.GL11;

import cn.academy.core.proxy.ACModels;
import cn.liutils.api.render.model.TileEntityModelCustom;
import cn.liutils.template.client.render.block.RenderDirMultiModelled;

/**
 * @author WeathFolD
 *
 */
public class RenderMagInducer extends RenderDirMultiModelled {

    private static ResourceLocation TEX = new ResourceLocation("academy:textures/models/magincr.png");

    public RenderMagInducer() {
        super(new TileEntityModelCustom(ACModels.MDL_MAGNET_MODULE));
        setModelTexture(TEX);
        this.scale = 0.003f;
    }

    @Override
    protected void renderAtOrigin(TileEntity te) {
        GL11.glRotated(90, 0, 1, 0);
        super.renderAtOrigin(te);
    }

}