public Model model = new Model();
@Nullable
@Override
public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, EntityEquipmentSlot armorSlot, ModelBiped _default)
{
return model;
}
public class Model extends ModelBiped
{
IModelCustom head = AdvancedModelLoader.loadModel(new ResourceLocation(MOD_ID, "models/head.obj"));
ResourceLocation texture = new ResourceLocation(MOD_ID, "textures/texture.png");
@Override
public void render(Entity entity, float time, float armsLegs, float headAngleY, float headAngleX, float p_78088_6_, float p_78088_7_)
{
if (this.bipedHead.showModel)
{...
public Model model = new Model();
@Nullable
@Override
public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, EntityEquipmentSlot armorSlot, ModelBiped _default)
{
return model;
}
public class Model extends ModelBiped
{
IModelCustom head = AdvancedModelLoader.loadModel(new ResourceLocation(MOD_ID, "models/head.obj"));
ResourceLocation texture = new ResourceLocation(MOD_ID, "textures/texture.png");
@Override
public void render(Entity entity, float time, float armsLegs, float headAngleY, float headAngleX, float p_78088_6_, float p_78088_7_)
{
if (this.bipedHead.showModel)
{
GlStateManager.pushMatrix();
{
Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
head.renderAll();
}
GlStateManager.popMatrix();
}
}
}