Crystalite Armor models; WIP: REI Infusion view compass

This commit is contained in:
Aleksey 2020-12-03 22:13:27 +03:00
parent 15d2d981de
commit b7c0ce452e
5 changed files with 28 additions and 35 deletions

View file

@ -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);
}
}