WIP: custom armor models
This commit is contained in:
parent
bf7e665b36
commit
fbf3013382
23 changed files with 298 additions and 17 deletions
|
@ -0,0 +1,42 @@
|
|||
package ru.betterend.item.model;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import net.minecraft.client.model.ModelPart;
|
||||
import net.minecraft.client.render.entity.model.BipedEntityModel;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
|
||||
public class CrystaliteBootsModel extends BipedEntityModel<LivingEntity> {
|
||||
|
||||
public ModelPart leftBoot;
|
||||
public ModelPart rightBoot;
|
||||
|
||||
public CrystaliteBootsModel(float scale) {
|
||||
super(scale);
|
||||
this.leftBoot = new ModelPart(this, 0, 16);
|
||||
this.leftBoot.addCuboid(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, scale + 0.25F);
|
||||
this.leftBoot.setPivot(1.9F, 12.0F, 0.0F);
|
||||
this.rightBoot = new ModelPart(this, 0, 16);
|
||||
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
|
||||
protected Iterable<ModelPart> getHeadParts() {
|
||||
return Collections::emptyIterator;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Iterable<ModelPart> getBodyParts() {
|
||||
return Lists.newArrayList(leftBoot, rightBoot);
|
||||
}
|
||||
|
||||
@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.leftBoot.copyPositionAndRotation(leftLeg);
|
||||
this.rightBoot.copyPositionAndRotation(rightLeg);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue