Optimize Imports

This commit is contained in:
Kam committed 2024-02-15 17:54:28 -05:00
1 parent ec78673fa2
commit e46b78ff71
149 files changed
+931 -1029

No files matched your search

@@ -8,8 +8,7 @@ import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
import noppes.npcs.*;
import noppes.npcs.CustomItems;
import noppes.npcs.api.ISkinOverlay;
import noppes.npcs.client.ClientCacheHandler;
import noppes.npcs.client.model.animation.AniCrawling;
@@ -18,7 +17,6 @@ import noppes.npcs.client.model.part.*;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.client.model.util.ModelScaleRenderer;
import noppes.npcs.client.renderer.ImageData;
import noppes.npcs.client.renderer.RenderNPCInterface;
import noppes.npcs.constants.EnumAnimation;
import noppes.npcs.constants.EnumAnimationPart;
import noppes.npcs.controllers.data.*;
@@ -1,16 +1,16 @@
package noppes.npcs.client.model.part;
import net.minecraft.entity.Entity;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.Model2DRenderer;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
public class ModelBeard extends ModelPartInterface {
private Model2DRenderer model;
public ModelBeard(ModelMPM base) {
super(base);
model = new Model2DRenderer(base, 56, 20, 8, 12, 64, 32);
@@ -38,7 +38,7 @@ public class ModelBeard extends ModelPartInterface {
}
color = config.color;
isHidden = false;
if(!config.playerTexture){
location = config.getResource();
}
@@ -2,10 +2,10 @@ package noppes.npcs.client.model.part;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.Model2DRenderer;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
public class ModelBreasts extends ModelPartInterface {
private Model2DRenderer breasts;
@@ -44,7 +44,7 @@ public class ModelBreasts extends ModelPartInterface {
right.setScale(0.12f, 0.14f);
right.setThickness(1.75f);
breasts3.addChild(right);
Model2DRenderer right2 = new Model2DRenderer(base, 20f, 22, 3, 1, width, height);
right2.setTextureSize(width, height);
right2.setRotationPoint(-3.8F, 4.1f, -3.14f);
@@ -52,7 +52,7 @@ public class ModelBreasts extends ModelPartInterface {
right2.setThickness(1.75f);
right2.rotateAngleX = (float) (Math.PI / 9);
breasts3.addChild(right2);
Model2DRenderer right3 = new Model2DRenderer(base, 20f, 24, 3, 1, width, height);
right3.setTextureSize(width, height);
right3.setRotationPoint(-3.8F, 5.3f, -3.6f);
@@ -60,7 +60,7 @@ public class ModelBreasts extends ModelPartInterface {
right3.setThickness(1.75f);
right3.rotateAngleX = (float) (-Math.PI / 9);
breasts3.addChild(right3);
Model2DRenderer right4 = new Model2DRenderer(base, 23f, 22, 1, 2, width, height);
right4.setTextureSize(width, height);
right4.setRotationPoint(-1.8f, 5.3f, -3.14f);
@@ -75,7 +75,7 @@ public class ModelBreasts extends ModelPartInterface {
left.setScale(0.12f, 0.14f);
left.setThickness(1.75f);
breasts3.addChild(left);
Model2DRenderer left2 = new Model2DRenderer(base, 25f, 22, 3, 1, width, height);
left2.setTextureSize(width, height);
left2.setRotationPoint(0.8F, 4.1f, -3.18f);
@@ -83,7 +83,7 @@ public class ModelBreasts extends ModelPartInterface {
left2.setThickness(1.75f);
left2.rotateAngleX = (float) (Math.PI / 9);
breasts3.addChild(left2);
Model2DRenderer left3 = new Model2DRenderer(base, 25f, 24, 3, 1, width, height);
left3.setTextureSize(width, height);
left3.setRotationPoint(0.8F, 5.3f, -3.6f);
@@ -91,7 +91,7 @@ public class ModelBreasts extends ModelPartInterface {
left3.setThickness(1.75f);
left3.rotateAngleX = (float) (-Math.PI / 9);
breasts3.addChild(left3);
Model2DRenderer left4 = new Model2DRenderer(base, 24f, 22, 1, 2, width, height);
left4.setTextureSize(width, height);
left4.setRotationPoint(0.8f, 5.3f, -3.6f);
@@ -1,16 +1,16 @@
package noppes.npcs.client.model.part;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.Model2DRenderer;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
public class ModelClaws extends ModelPartInterface {
private Model2DRenderer model;
private boolean isRight = false;
public ModelClaws(ModelMPM base, boolean isRight) {
super(base);
this.isRight = isRight;
@@ -34,7 +34,7 @@ public class ModelClaws extends ModelPartInterface {
}
color = config.color;
isHidden = false;
if(!config.playerTexture){
location = config.getResource();
}
@@ -1,18 +1,18 @@
package noppes.npcs.client.model.part;
import net.minecraft.client.model.ModelRenderer;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.Model2DRenderer;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
public class ModelEars extends ModelPartInterface {
private ModelRenderer ears;
private ModelRenderer bunny;
public ModelEars(ModelMPM par1ModelBase) {
super(par1ModelBase);
ears = new ModelRenderer(base);
this.addChild(ears);
@@ -42,10 +42,10 @@ public class ModelEars extends ModelPartInterface {
left2.setThickness(1.16f);
ears.addChild(left2);
bunny = new ModelRenderer(base);
this.addChild(bunny);
ModelRenderer earleft = new ModelRenderer(base, 56, 0);
earleft.mirror = true;
earleft.addBox(-1.466667F, -4F, 0F, 3, 7, 1);
@@ -68,7 +68,7 @@ public class ModelEars extends ModelPartInterface {
}
isHidden = false;
this.color = config.color;
ears.isHidden = config.type != 0;
bunny.isHidden = config.type != 1;
@@ -1,15 +1,15 @@
package noppes.npcs.client.model.part;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.Model2DRenderer;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
public class ModelFin extends ModelPartInterface {
private Model2DRenderer model;
public ModelFin(ModelMPM base) {
super(base);
model = new Model2DRenderer(base, 48, 8, 16, 24, 64, 32);
@@ -29,7 +29,7 @@ public class ModelFin extends ModelPartInterface {
}
color = config.color;
isHidden = false;
if(!config.playerTexture){
location = config.getResource();
}
@@ -2,15 +2,15 @@ package noppes.npcs.client.model.part;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.Model2DRenderer;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
public class ModelHair extends ModelPartInterface {
private Model2DRenderer model;
public ModelHair(ModelMPM base) {
super(base);
model = new Model2DRenderer(base, 56, 20, 8, 12, 64, 32);
@@ -2,21 +2,21 @@ package noppes.npcs.client.model.part;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.part.horns.ModelAntennasBack;
import noppes.npcs.client.model.part.horns.ModelAntennasFront;
import noppes.npcs.client.model.part.horns.ModelAntlerHorns;
import noppes.npcs.client.model.part.horns.ModelBullHorns;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
public class ModelHorns extends ModelPartInterface {
private ModelRenderer bull;
private ModelRenderer antlers;
private ModelRenderer antennasBack;
private ModelRenderer antennasFront;
public ModelHorns(ModelMPM base) {
super(base);
@@ -42,12 +42,12 @@ public class ModelHorns extends ModelPartInterface {
}
color = config.color;
isHidden = false;
bull.isHidden = config.type != 0;
antlers.isHidden = config.type != 1;
antennasBack.isHidden = config.type != 2;
antennasFront.isHidden = config.type != 3;
if(!config.playerTexture){
location = config.getResource();
}
@@ -3,7 +3,6 @@ package noppes.npcs.client.model.part;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.util.MathHelper;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.ClientProxy;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.part.legs.ModelDigitigradeLegs;
@@ -13,6 +12,7 @@ import noppes.npcs.client.model.part.legs.ModelNagaLegs;
import noppes.npcs.client.model.util.ModelScaleRenderer;
import noppes.npcs.constants.EnumAnimation;
import noppes.npcs.entity.EntityCustomNpc;
import noppes.npcs.entity.data.ModelPartData;
import org.lwjgl.opengl.GL11;
public class ModelLegs extends ModelScaleRenderer{
@@ -35,25 +35,25 @@ public class ModelLegs extends ModelScaleRenderer{
private ModelRenderer spiderLeg8;
private ModelRenderer spiderBody;
private ModelRenderer spiderNeck;
private ModelRenderer backLeftLeg;
private ModelRenderer backLeftShin;
private ModelRenderer backLeftHoof;
private ModelRenderer backRightLeg;
private ModelRenderer backRightShin;
private ModelRenderer backRightHoof;
private ModelRenderer frontLeftLeg;
private ModelRenderer frontLeftShin;
private ModelRenderer frontLeftHoof;
private ModelRenderer frontRightLeg;
private ModelRenderer frontRightShin;
private ModelRenderer frontRightHoof;
private ModelMPM base;
public ModelLegs(ModelMPM base, ModelScaleRenderer leg1, ModelScaleRenderer leg2, int textWidth, int textHeight) {
super(base);
@@ -73,62 +73,62 @@ public class ModelLegs extends ModelScaleRenderer{
spiderNeck.addBox(-3.0F, -3.0F, -3.0F, 6, 6, 6, var1);
spiderNeck.setRotationPoint(0.0F, (float)var2, 2.0F);
spider.addChild(spiderNeck);
spiderBody = new ModelRenderer(base, 0, 12);
spiderBody.setTextureSize(64,32);
spiderBody.addBox(-5.0F, -4.0F, -6.0F, 10, 8, 12, var1);
spiderBody.setRotationPoint(0.0F, (float)var2, 11.0F);
spider.addChild(spiderBody);
this.spiderLeg1 = new ModelRenderer(base, 18, 0);
this.spiderLeg1.setTextureSize(64,32);
this.spiderLeg1.addBox(-15.0F, -1.0F, -1.0F, 16, 2, 2, var1);
this.spiderLeg1.setRotationPoint(-4.0F, (float)var2, 4.0F);
spider.addChild(spiderLeg1);
this.spiderLeg2 = new ModelRenderer(base, 18, 0);
this.spiderLeg2.setTextureSize(64,32);
this.spiderLeg2.addBox(-1.0F, -1.0F, -1.0F, 16, 2, 2, var1);
this.spiderLeg2.setRotationPoint(4.0F, (float)var2, 4.0F);
spider.addChild(spiderLeg2);
this.spiderLeg3 = new ModelRenderer(base, 18, 0);
this.spiderLeg3.setTextureSize(64,32);
this.spiderLeg3.addBox(-15.0F, -1.0F, -1.0F, 16, 2, 2, var1);
this.spiderLeg3.setRotationPoint(-4.0F, (float)var2, 3.0F);
spider.addChild(spiderLeg3);
this.spiderLeg4 = new ModelRenderer(base, 18, 0);
this.spiderLeg4.setTextureSize(64,32);
this.spiderLeg4.addBox(-1.0F, -1.0F, -1.0F, 16, 2, 2, var1);
this.spiderLeg4.setRotationPoint(4.0F, (float)var2, 3.0F);
spider.addChild(spiderLeg4);
this.spiderLeg5 = new ModelRenderer(base, 18, 0);
this.spiderLeg5.setTextureSize(64,32);
this.spiderLeg5.addBox(-15.0F, -1.0F, -1.0F, 16, 2, 2, var1);
this.spiderLeg5.setRotationPoint(-4.0F, (float)var2, 2.0F);
spider.addChild(spiderLeg5);
this.spiderLeg6 = new ModelRenderer(base, 18, 0);
this.spiderLeg6.setTextureSize(64,32);
this.spiderLeg6.addBox(-1.0F, -1.0F, -1.0F, 16, 2, 2, var1);
this.spiderLeg6.setRotationPoint(4.0F, (float)var2, 2.0F);
spider.addChild(spiderLeg6);
this.spiderLeg7 = new ModelRenderer(base, 18, 0);
this.spiderLeg7.setTextureSize(64,32);
this.spiderLeg7.addBox(-15.0F, -1.0F, -1.0F, 16, 2, 2, var1);
this.spiderLeg7.setRotationPoint(-4.0F, (float)var2, 1.0F);
spider.addChild(spiderLeg7);
this.spiderLeg8 = new ModelRenderer(base, 18, 0);
this.spiderLeg8.setTextureSize(64,32);
this.spiderLeg8.addBox(-1.0F, -1.0F, -1.0F, 16, 2, 2, var1);
this.spiderLeg8.setRotationPoint(4.0F, (float)var2, 1.0F);
spider.addChild(spiderLeg8);
int zOffset = 10;
float yOffset = 7f;
horse = new ModelRenderer(base);
@@ -139,7 +139,7 @@ public class ModelLegs extends ModelScaleRenderer{
body.addBox(-5.0F, -8.0F, -19.0F, 10, 10, 24);
body.setRotationPoint(0.0F, 11.0F + yOffset, 9.0F + zOffset);
horse.addChild(body);
this.backLeftLeg = new ModelRenderer(base, 78, 29);
this.backLeftLeg.setTextureSize(128, 128);
this.backLeftLeg.addBox(-2.5F, -2.0F, -2.5F, 4, 9, 5);
@@ -155,7 +155,7 @@ public class ModelLegs extends ModelScaleRenderer{
this.backLeftHoof.addBox(-2.5F, 5.1F, -2.0F, 4, 3, 4);
this.backLeftHoof.setRotationPoint(0F, 7.0F, 0);
backLeftLeg.addChild(backLeftHoof);
this.backRightLeg = new ModelRenderer(base, 96, 29);
this.backRightLeg.setTextureSize(128, 128);
this.backRightLeg.addBox(-1.5F, -2.0F, -2.5F, 4, 9, 5);
@@ -171,7 +171,7 @@ public class ModelLegs extends ModelScaleRenderer{
this.backRightHoof.addBox(-1.5F, 5.1F, -2.0F, 4, 3, 4);
this.backRightHoof.setRotationPoint(0F, 7, 0);
backRightLeg.addChild(backRightHoof);
this.frontLeftLeg = new ModelRenderer(base, 44, 29);
this.frontLeftLeg.setTextureSize(128, 128);
this.frontLeftLeg.addBox(-1.9F, -1.0F, -2.1F, 3, 8, 4);
@@ -187,7 +187,7 @@ public class ModelLegs extends ModelScaleRenderer{
this.frontLeftHoof.addBox(-2.4F, 5.1F, -2.1F, 4, 3, 4);
this.frontLeftHoof.setRotationPoint(.0F, 7.0F, 0F);
frontLeftLeg.addChild(frontLeftHoof);
this.frontRightLeg = new ModelRenderer(base, 60, 29);
this.frontRightLeg.setTextureSize(128, 128);
this.frontRightLeg.addBox(-1.1F, -1.0F, -2.1F, 3, 8, 4);
@@ -234,7 +234,7 @@ public class ModelLegs extends ModelScaleRenderer{
ModelPartData part = this.entity.modelData.legParts;
rotationPointZ = 0;
rotationPointY = 0;
if(base.isArmor)
return;
if(part.type == 2){
@@ -242,7 +242,7 @@ public class ModelLegs extends ModelScaleRenderer{
spiderBody.rotationPointY = 15;
spiderBody.rotationPointZ = 11;
spiderNeck.rotateAngleX = 0;
float var8 = ((float)Math.PI / 4F);
this.spiderLeg1.rotateAngleZ = -var8;
this.spiderLeg2.rotateAngleZ = var8;
@@ -287,7 +287,7 @@ public class ModelLegs extends ModelScaleRenderer{
this.spiderLeg7.rotateAngleZ += var18;
this.spiderLeg8.rotateAngleZ += -var18;
if(base.isSneak){
rotationPointZ = 5;
rotationPointY = -1;
@@ -303,7 +303,7 @@ public class ModelLegs extends ModelScaleRenderer{
}
}
else if(part.type == 3){
this.frontLeftLeg.rotateAngleX = MathHelper.cos(par1 * 0.6662F) * .4F * par2;
this.frontLeftLeg.rotateAngleX = MathHelper.cos(par1 * 0.6662F) * .4F * par2;
this.frontRightLeg.rotateAngleX = MathHelper.cos(par1 * 0.6662F + (float)Math.PI) * .4F * par2;
this.backLeftLeg.rotateAngleX = MathHelper.cos(par1 * 0.6662F + (float)Math.PI) * .4F * par2;
this.backRightLeg.rotateAngleX = MathHelper.cos(par1 * 0.6662F) * .4F * par2;
@@ -331,7 +331,7 @@ public class ModelLegs extends ModelScaleRenderer{
digitigrade.setRotationAngles(par1, par2, par3, par4, par5, par6, entity);
}
}
@Override
public void render(float par1)
{
@@ -367,7 +367,7 @@ public class ModelLegs extends ModelScaleRenderer{
mermaid.isHidden = part.type != 4;
mermaid2.isHidden = part.type != 6;
digitigrade.isHidden = part.type != 5;
if(!horse.isHidden){
x = 0;
y *= 1.8f;
@@ -398,7 +398,7 @@ public class ModelLegs extends ModelScaleRenderer{
GL11.glColor4f(1, 1, 1, base.alpha);
}
GL11.glPopMatrix();
}
public void setData(EntityCustomNpc entity) {
this.entity = entity;
@@ -1,11 +1,11 @@
package noppes.npcs.client.model.part;
import net.minecraft.entity.Entity;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.Model2DRenderer;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
public class ModelMohawk extends ModelPartInterface {
private Model2DRenderer model;
@@ -22,7 +22,7 @@ public class ModelMohawk extends ModelPartInterface {
@Override
public void setRotationAngles(float par1, float par2, float par3,
float par4, float par5, float par6, Entity entity) {
}
@@ -37,7 +37,7 @@ public class ModelMohawk extends ModelPartInterface {
color = config.color;
isHidden = false;
location = config.getResource();
}
}
@@ -3,11 +3,11 @@ package noppes.npcs.client.model.part;
import net.minecraft.entity.Entity;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.client.model.util.ModelPlaneRenderer;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import org.lwjgl.opengl.GL11;
public class ModelSkirt extends ModelPartInterface {
@@ -22,7 +22,7 @@ public class ModelSkirt extends ModelPartInterface {
Shape1 = new ModelPlaneRenderer(base, 58, 18);
Shape1.setTextureSize(64,32);
Shape1.addSidePlane(0, 0, 0, 9, 2);
ModelPlaneRenderer part1 = new ModelPlaneRenderer(base, 58, 18);
part1.setTextureSize(64,32);
part1.addSidePlane(2, 0, 0, 9, 2);
@@ -2,10 +2,10 @@ package noppes.npcs.client.model.part;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
public class ModelSnout extends ModelPartInterface {
private ModelRenderer small;
@@ -13,10 +13,10 @@ public class ModelSnout extends ModelPartInterface {
private ModelRenderer large;
private ModelRenderer bunny;
private ModelRenderer beak;
public ModelSnout(ModelMPM base) {
super(base);
small = new ModelRenderer(base, 24, 0);
small.setTextureSize(64,32);
small.addBox(0F, 0F, 0F, 4, 3, 1);
@@ -34,13 +34,13 @@ public class ModelSnout extends ModelPartInterface {
large.addBox(0F, 0F, 0F, 4, 3, 3);
large.setRotationPoint(-2F, -3F, -7F);
this.addChild(large);
bunny = new ModelRenderer(base, 24, 0);
bunny.setTextureSize(64,32);
bunny.addBox(1F, 1F, 0F, 4, 2, 1);
bunny.setRotationPoint(-3F, -4F, -5F);
this.addChild(bunny);
ModelRenderer tooth = new ModelRenderer(base, 24, 3);
tooth.setTextureSize(64,32);
tooth.addBox(2F, 3f, 0F, 2, 1, 1);
@@ -75,7 +75,7 @@ public class ModelSnout extends ModelPartInterface {
large.isHidden = config.type != 2;
bunny.isHidden = config.type != 3;
beak.isHidden = config.type != 4;
if(!config.playerTexture){
location = config.getResource();
}
@@ -5,19 +5,19 @@ import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.ClientProxy;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.part.tails.*;
import noppes.npcs.client.model.util.ModelScaleRenderer;
import noppes.npcs.constants.EnumAnimation;
import noppes.npcs.entity.EntityCustomNpc;
import noppes.npcs.entity.data.ModelPartData;
import org.lwjgl.opengl.GL11;
public class ModelTail extends ModelScaleRenderer {
private EntityCustomNpc entity;
private ModelMPM base;
private ModelRenderer tail;
private ModelRenderer dragon;
private ModelRenderer squirrel;
@@ -25,11 +25,11 @@ public class ModelTail extends ModelScaleRenderer {
private ModelRenderer fin;
private ModelRenderer rodent;
private ModelRenderer feather;
private int color = 0xFFFFFF;
private ResourceLocation location = null;
public ModelTail(ModelMPM base) {
super(base);
this.base = base;
@@ -41,7 +41,7 @@ public class ModelTail extends ModelScaleRenderer {
tail.setRotationPoint(0F, 0, 1F);
setRotation(tail, 0.8714253F, 0F, 0F);
this.addChild(tail);
horse = new ModelRenderer(base);
horse.setTextureSize(32, 32);
horse.setRotationPoint(0, -1, 1);
@@ -79,14 +79,14 @@ public class ModelTail extends ModelScaleRenderer {
this.entity = entity;
initData(entity);
}
public void setRotationAngles(float par1, float par2, float par3,
float par4, float par5, float par6, Entity entity) {
if(this.entity==null) return;
rotateAngleY = MathHelper.cos(par1 * 0.6662F) * 0.3f * par2;
rotateAngleX = MathHelper.sin(par3 * 0.067F) * 0.05F;
if(this.entity.modelData.legParts.type == 2){
rotationPointY = 13f;
rotationPointZ = 14 * this.entity.modelData.modelScale.legs.scaleZ;
@@ -2,27 +2,27 @@ package noppes.npcs.client.model.part;
import net.minecraft.entity.Entity;
import net.minecraft.util.MathHelper;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.Model2DRenderer;
import noppes.npcs.client.model.util.ModelPartInterface;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
public class ModelWings extends ModelPartInterface {
private Model2DRenderer lWing;
private Model2DRenderer rWing;
public ModelWings(ModelMPM base) {
super(base);
lWing = new Model2DRenderer(base, 48, 32, 16, 32, 64, 32);
lWing.mirror = true;
lWing.setRotationPoint(2F, 4, 2F);
lWing.setRotationOffset(-16, -12);
setRotation(lWing, 0.7141593F, -0.5235988F, -0.5090659F);
this.addChild(lWing);
rWing = new Model2DRenderer(base, 48, 32, 16, 32, 64, 32);
rWing.setRotationPoint(-2F, 4F, 2F);
rWing.setRotationOffset(-16, -12);
@@ -35,7 +35,7 @@ public class ModelWings extends ModelPartInterface {
float par4, float par5, float par6, Entity entity) {
rWing.rotateAngleX = 0.7141593F;
rWing.rotateAngleZ = 0.5090659F;
lWing.rotateAngleX = 0.7141593F;
lWing.rotateAngleZ = -0.5090659F;
@@ -4,11 +4,11 @@ import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.ResourceLocation;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import noppes.npcs.client.ClientProxy;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.entity.EntityCustomNpc;
import noppes.npcs.entity.data.ModelData;
import noppes.npcs.entity.data.ModelPartData;
import org.lwjgl.opengl.GL11;
public abstract class ModelPartInterface extends ModelRenderer {
@@ -18,7 +18,7 @@ public abstract class ModelPartInterface extends ModelRenderer {
public float scale = 1;
protected ResourceLocation location;
public int color = 0xFFFFFF;
public ModelMPM base;
public ModelPartInterface(ModelMPM par1ModelBase) {