mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
32 lines
822 B
Java
32 lines
822 B
Java
package com.hbm.render.model;
|
|
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
import com.hbm.main.ResourceManager;
|
|
import com.hbm.render.loader.ModelRendererObj;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
public class ModelBackTesla extends ModelArmorBase {
|
|
|
|
public ModelBackTesla() {
|
|
super(1);
|
|
this.body = new ModelRendererObj(ResourceManager.armor_mod_tesla);
|
|
}
|
|
|
|
@Override
|
|
public void render(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor) {
|
|
|
|
super.setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor, entity);
|
|
|
|
GL11.glPushMatrix();
|
|
GL11.glShadeModel(GL11.GL_SMOOTH);
|
|
|
|
bindTexture(ResourceManager.mod_tesla);
|
|
this.body.render(scaleFactor);
|
|
|
|
GL11.glShadeModel(GL11.GL_FLAT);
|
|
GL11.glPopMatrix();
|
|
}
|
|
}
|