Crystalite Armor models; WIP: REI Infusion view compass
This commit is contained in:
parent
15d2d981de
commit
b7c0ce452e
5 changed files with 28 additions and 35 deletions
|
@ -23,6 +23,13 @@ public class CrystaliteBootsModel extends BipedEntityModel<LivingEntity> {
|
|||
this.rightBoot.addCuboid(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, scale + 0.25F);
|
||||
this.rightBoot.setPivot(-1.9F, 12.0F, 0.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAttributes(BipedEntityModel<LivingEntity> bipedEntityModel) {
|
||||
super.setAttributes(bipedEntityModel);
|
||||
this.leftBoot.copyPositionAndRotation(leftLeg);
|
||||
this.rightBoot.copyPositionAndRotation(rightLeg);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Iterable<ModelPart> getHeadParts() {
|
||||
|
@ -33,12 +40,4 @@ public class CrystaliteBootsModel extends BipedEntityModel<LivingEntity> {
|
|||
protected Iterable<ModelPart> getBodyParts() {
|
||||
return Lists.newArrayList(leftBoot, rightBoot);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAttributes(BipedEntityModel<LivingEntity> bipedEntityModel) {
|
||||
this.leftLeg.copyPositionAndRotation(bipedEntityModel.leftLeg);
|
||||
this.rightLeg.copyPositionAndRotation(bipedEntityModel.rightLeg);
|
||||
this.leftBoot.copyPositionAndRotation(leftLeg);
|
||||
this.rightBoot.copyPositionAndRotation(rightLeg);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,23 +25,30 @@ public class CrystaliteChestplateModel extends BipedEntityModel<LivingEntity> {
|
|||
this.torso.setPivot(0.0F, 0.0F, 0.0F);
|
||||
if (thinArms) {
|
||||
this.leftShoulder = new ModelPart(this, 41, 32);
|
||||
this.leftShoulder.addCuboid(-1.0F, -2.5F, -2.0F, 3.0F, 12.0F, 4.0F, scale + 0.3F);
|
||||
this.leftShoulder.addCuboid(-1.0F, -2.5F, -2.0F, 3.0F, 12.0F, 4.0F, scale + 0.35F);
|
||||
this.leftShoulder.setPivot(5.0F, 2.5F, 0.0F);
|
||||
this.leftShoulder.mirror = true;
|
||||
this.rightShoulder = new ModelPart(this, 41, 16);
|
||||
this.rightShoulder.addCuboid(-2.0F, -2.5F, -2.0F, 3.0F, 12.0F, 4.0F, scale + 0.3F);
|
||||
this.rightShoulder.addCuboid(-2.0F, -2.5F, -2.0F, 3.0F, 12.0F, 4.0F, scale + 0.35F);
|
||||
this.rightShoulder.setPivot(-5.0F, 2.5F, 10.0F);
|
||||
} else {
|
||||
this.leftShoulder = new ModelPart(this, 40, 32);
|
||||
this.leftShoulder.addCuboid(-1.0F, -2.5F, -2.0F, 4.0F, 12.0F, 4.0F, scale + 0.4F);
|
||||
this.leftShoulder.addCuboid(-1.0F, -2.5F, -2.0F, 4.0F, 12.0F, 4.0F, scale + 0.45F);
|
||||
this.leftShoulder.setPivot(5.0F, 2.0F, 0.0F);
|
||||
this.leftShoulder.mirror = true;
|
||||
this.rightShoulder = new ModelPart(this, 40, 16);
|
||||
this.rightShoulder.addCuboid(-3.0F, -2.5F, -2.0F, 4.0F, 12.0F, 4.0F, scale + 0.4F);
|
||||
this.rightShoulder.addCuboid(-3.0F, -2.5F, -2.0F, 4.0F, 12.0F, 4.0F, scale + 0.45F);
|
||||
this.rightShoulder.setPivot(-5.0F, 2.0F, 10.0F);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAttributes(BipedEntityModel<LivingEntity> bipedEntityModel) {
|
||||
super.setAttributes(bipedEntityModel);
|
||||
this.leftShoulder.copyPositionAndRotation(leftArm);
|
||||
this.rightShoulder.copyPositionAndRotation(rightArm);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Iterable<ModelPart> getHeadParts() {
|
||||
return Collections::emptyIterator;
|
||||
|
@ -52,15 +59,6 @@ public class CrystaliteChestplateModel extends BipedEntityModel<LivingEntity> {
|
|||
return Lists.newArrayList(torso, leftShoulder, rightShoulder);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAttributes(BipedEntityModel<LivingEntity> bipedEntityModel) {
|
||||
this.torso.copyPositionAndRotation(bipedEntityModel.torso);
|
||||
this.leftArm.copyPositionAndRotation(bipedEntityModel.leftArm);
|
||||
this.rightArm.copyPositionAndRotation(bipedEntityModel.rightArm);
|
||||
this.leftShoulder.copyPositionAndRotation(leftArm);
|
||||
this.rightShoulder.copyPositionAndRotation(rightArm);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setArmAngle(Arm arm, MatrixStack matrices) {
|
||||
ModelPart modelPart = this.getArm(arm);
|
||||
|
|
|
@ -11,13 +11,11 @@ import net.minecraft.entity.LivingEntity;
|
|||
|
||||
public class CrystaliteLeggingsModel extends BipedEntityModel<LivingEntity> {
|
||||
|
||||
public ModelPart jacket;
|
||||
|
||||
public CrystaliteLeggingsModel(float scale) {
|
||||
super(RenderLayer::getEntityTranslucent, scale, 0.0F, 64, 48);
|
||||
this.jacket = new ModelPart(this, 16, 16);
|
||||
this.jacket.addCuboid(-4.0F, 0.0F, -2.0F, 8.0F, 12.0F, 4.0F, scale);
|
||||
this.jacket.setPivot(0.0F, 0.0F, 0.0F);
|
||||
this.torso = new ModelPart(this, 16, 16);
|
||||
this.torso.addCuboid(-4.0F, 0.0F, -2.0F, 8.0F, 12.0F, 4.0F, scale);
|
||||
this.torso.setPivot(0.0F, 0.0F, 0.0F);
|
||||
this.leftLeg = new ModelPart(this, 0, 32);
|
||||
this.leftLeg.addCuboid(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, scale);
|
||||
this.leftLeg.setPivot(1.9F, 12.0F, 0.0F);
|
||||
|
@ -33,12 +31,6 @@ public class CrystaliteLeggingsModel extends BipedEntityModel<LivingEntity> {
|
|||
|
||||
@Override
|
||||
protected Iterable<ModelPart> getBodyParts() {
|
||||
return Lists.newArrayList(jacket, rightLeg, leftLeg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAngles(LivingEntity livingEntity, float f, float g, float h, float i, float j) {
|
||||
super.setAngles(livingEntity, f, g, h, i, j);
|
||||
this.jacket.copyPositionAndRotation(torso);
|
||||
return Lists.newArrayList(torso, rightLeg, leftLeg);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue