52 lines
2.3 KiB
Java
52 lines
2.3 KiB
Java
// Made with Blockbench 4.12.3
|
|
// Exported for Minecraft version 1.17 or later with Mojang mappings
|
|
// Paste this class into your mod and generate all required imports
|
|
|
|
public class Modelnymbus_model<T extends Entity> extends EntityModel<T> {
|
|
// This layer location should be baked with EntityRendererProvider.Context in
|
|
// the entity renderer and passed into this model's constructor
|
|
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(
|
|
new ResourceLocation("modid", "nymbus_model"), "main");
|
|
private final ModelPart bone4;
|
|
private final ModelPart bone;
|
|
private final ModelPart bone2;
|
|
private final ModelPart bone3;
|
|
|
|
public Modelnymbus_model(ModelPart root) {
|
|
this.bone4 = root.getChild("bone4");
|
|
this.bone = this.bone4.getChild("bone");
|
|
this.bone2 = this.bone4.getChild("bone2");
|
|
this.bone3 = this.bone4.getChild("bone3");
|
|
}
|
|
|
|
public static LayerDefinition createBodyLayer() {
|
|
MeshDefinition meshdefinition = new MeshDefinition();
|
|
PartDefinition partdefinition = meshdefinition.getRoot();
|
|
|
|
PartDefinition bone4 = partdefinition.addOrReplaceChild("bone4", CubeListBuilder.create(),
|
|
PartPose.offset(0.0F, 16.0F, 0.0F));
|
|
|
|
PartDefinition bone = bone4.addOrReplaceChild("bone", CubeListBuilder.create().texOffs(0, 34).addBox(-3.0F,
|
|
-8.0F, -3.0F, 6.0F, 16.0F, 6.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F));
|
|
|
|
PartDefinition bone2 = bone4.addOrReplaceChild("bone2", CubeListBuilder.create().texOffs(0, 0).addBox(-3.0F,
|
|
-3.0F, -8.0F, 6.0F, 6.0F, 16.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F));
|
|
|
|
PartDefinition bone3 = bone4.addOrReplaceChild("bone3", CubeListBuilder.create().texOffs(0, 22).addBox(-8.0F,
|
|
-3.0F, -3.0F, 16.0F, 6.0F, 6.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F));
|
|
|
|
return LayerDefinition.create(meshdefinition, 64, 64);
|
|
}
|
|
|
|
@Override
|
|
public void setupAnim(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw,
|
|
float headPitch) {
|
|
|
|
}
|
|
|
|
@Override
|
|
public void renderToBuffer(PoseStack poseStack, VertexConsumer vertexConsumer, int packedLight, int packedOverlay,
|
|
float red, float green, float blue, float alpha) {
|
|
bone4.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
|
|
}
|
|
} |