mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
35 lines
959 B
Java
35 lines
959 B
Java
package com.hbm.render;
|
|
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
import com.hbm.lib.RefStrings;
|
|
|
|
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public class RenderYellowBarrel extends TileEntitySpecialRenderer {
|
|
|
|
private static final ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":" + "textures/models/ModelYellowBarrel.png");
|
|
|
|
private ModelTestRender model;
|
|
|
|
public RenderYellowBarrel() {
|
|
this.model = new ModelTestRender();
|
|
}
|
|
|
|
@Override
|
|
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
|
|
GL11.glPushMatrix();
|
|
GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
|
|
GL11.glRotatef(180, 0F, 0F, 1F);
|
|
|
|
this.bindTexture(texture);
|
|
|
|
GL11.glPushMatrix();
|
|
this.model.renderModel(0.0625F);
|
|
GL11.glPopMatrix();
|
|
GL11.glPopMatrix();
|
|
}
|
|
}
|