BabyLlamaModel.java
net.minecraft.client.model.animal.llama.BabyLlamaModel
信息
- 全限定名:net.minecraft.client.model.animal.llama.BabyLlamaModel
- 类型:public class
- 包:net.minecraft.client.model.animal.llama
- 源码路径:src/main/java/net/minecraft/client/model/animal/llama/BabyLlamaModel.java
- 起始行号:L14
- 继承:LlamaModel
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
public BabyLlamaModel(ModelPart root) @ L15
- 构造器名:BabyLlamaModel
- 源码定位:L15
- 修饰符:public
参数:
- root: ModelPart
说明:
TODO
方法
下面的方法块按源码顺序生成。
public static LayerDefinition createBodyLayer(CubeDeformation g) @ L19
- 方法名:createBodyLayer
- 源码定位:L19
- 返回类型:LayerDefinition
- 修饰符:public static
参数:
- g: CubeDeformation
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class BabyLlamaModel extends LlamaModel {
public BabyLlamaModel(ModelPart root) {
super(root);
}
public static LayerDefinition createBodyLayer(CubeDeformation g) {
MeshDefinition mesh = new MeshDefinition();
PartDefinition root = mesh.getRoot();
root.addOrReplaceChild(
"head",
CubeListBuilder.create()
.texOffs(0, 0)
.addBox(-3.0F, -9.0F, -4.0F, 6.0F, 11.0F, 4.0F, g)
.texOffs(0, 15)
.addBox(-1.5F, -7.0F, -7.0F, 3.0F, 3.0F, 3.0F, g)
.texOffs(20, 4)
.addBox(0.5F, -11.0F, -3.0F, 2.0F, 2.0F, 2.0F, g)
.texOffs(20, 0)
.addBox(-2.5F, -11.0F, -3.0F, 2.0F, 2.0F, 2.0F, g),
PartPose.offset(0.0F, 12.0F, -4.0F)
);
root.addOrReplaceChild(
"right_hind_leg", CubeListBuilder.create().texOffs(0, 45).addBox(-1.4F, -0.5F, -1.5F, 3.0F, 8.0F, 3.0F, g), PartPose.offset(-2.5F, 16.5F, 4.5F)
);
root.addOrReplaceChild(
"left_hind_leg", CubeListBuilder.create().texOffs(12, 45).addBox(-1.6F, -0.5F, -1.5F, 3.0F, 8.0F, 3.0F, g), PartPose.offset(2.5F, 16.5F, 4.5F)
);
root.addOrReplaceChild(
"right_front_leg", CubeListBuilder.create().texOffs(0, 34).addBox(-1.4F, -0.5F, -1.5F, 3.0F, 8.0F, 3.0F, g), PartPose.offset(-2.5F, 16.5F, -3.5F)
);
root.addOrReplaceChild(
"left_front_leg", CubeListBuilder.create().texOffs(12, 34).addBox(-1.6F, -0.5F, -1.5F, 3.0F, 8.0F, 3.0F, g), PartPose.offset(2.5F, 16.5F, -3.5F)
);
root.addOrReplaceChild(
"body", CubeListBuilder.create().texOffs(0, 15).addBox(-4.0F, -3.0F, -8.5F, 8.0F, 6.0F, 13.0F, g), PartPose.offset(0.0F, 14.0F, 2.5F)
);
root.addOrReplaceChild(
"right_chest",
CubeListBuilder.create().texOffs(45, 28).addBox(-3.0F, 0.0F, 0.0F, 8.0F, 8.0F, 3.0F, g),
PartPose.offsetAndRotation(-8.5F, 4.0F, 3.0F, 0.0F, (float) (Math.PI / 2), 0.0F)
);
root.addOrReplaceChild(
"left_chest",
CubeListBuilder.create().texOffs(45, 41).addBox(-3.0F, 0.0F, 0.0F, 8.0F, 8.0F, 3.0F, g),
PartPose.offsetAndRotation(5.5F, 4.0F, 3.0F, 0.0F, (float) (Math.PI / 2), 0.0F)
);
return LayerDefinition.create(mesh, 64, 64);
}
}引用的其他类
-
- 引用位置:
继承
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
PartPose.offset(), PartPose.offsetAndRotation()
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
CubeListBuilder.create()
- 引用位置:
-
- 引用位置:
方法调用/返回值 - 关联成员:
LayerDefinition.create()
- 引用位置:
-
- 引用位置:
构造调用 - 关联成员:
MeshDefinition()
- 引用位置: