BabyDolphinModel.java
net.minecraft.client.model.animal.dolphin.BabyDolphinModel
信息
- 全限定名:net.minecraft.client.model.animal.dolphin.BabyDolphinModel
- 类型:public class
- 包:net.minecraft.client.model.animal.dolphin
- 源码路径:src/main/java/net/minecraft/client/model/animal/dolphin/BabyDolphinModel.java
- 起始行号:L14
- 继承:DolphinModel
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
public BabyDolphinModel(ModelPart root) @ L15
- 构造器名:BabyDolphinModel
- 源码定位:L15
- 修饰符:public
参数:
- root: ModelPart
说明:
TODO
方法
下面的方法块按源码顺序生成。
public static LayerDefinition createBodyLayer() @ L19
- 方法名:createBodyLayer
- 源码定位:L19
- 返回类型:LayerDefinition
- 修饰符:public static
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class BabyDolphinModel extends DolphinModel {
public BabyDolphinModel(ModelPart root) {
super(root);
}
public static LayerDefinition createBodyLayer() {
MeshDefinition mesh = new MeshDefinition();
PartDefinition root = mesh.getRoot();
PartDefinition body = root.addOrReplaceChild(
"body",
CubeListBuilder.create().texOffs(20, 0).addBox(-3.0F, -2.5F, -4.0F, 6.0F, 5.0F, 8.0F, new CubeDeformation(0.0F)),
PartPose.offset(0.0F, 21.5F, 0.0F)
);
PartDefinition head = body.addOrReplaceChild(
"head",
CubeListBuilder.create().texOffs(0, 0).addBox(-3.0F, -3.5F, -4.0F, 6.0F, 5.0F, 4.0F, new CubeDeformation(0.0F)),
PartPose.offset(0.0F, 1.0F, -4.0F)
);
head.addOrReplaceChild(
"nose",
CubeListBuilder.create().texOffs(0, 9).addBox(-1.0F, -1.0F, -2.0F, 2.0F, 2.0F, 2.0F, new CubeDeformation(0.0F)),
PartPose.offset(0.0F, 0.5F, -4.0F)
);
body.addOrReplaceChild(
"left_fin",
CubeListBuilder.create().texOffs(34, 18).addBox(-0.5F, -1.5F, -0.5F, 1.0F, 3.0F, 6.0F, new CubeDeformation(0.0F)),
PartPose.offsetAndRotation(1.8F, 0.85F, -2.6F, 0.8727F, 0.0F, 1.7017F)
);
body.addOrReplaceChild(
"right_fin",
CubeListBuilder.create().texOffs(48, 18).mirror().addBox(-0.5F, -1.5F, -0.5F, 1.0F, 3.0F, 6.0F, new CubeDeformation(0.0F)).mirror(false),
PartPose.offsetAndRotation(-1.8F, 0.85F, -2.6F, 0.8727F, 0.0F, -1.7017F)
);
PartDefinition tail = body.addOrReplaceChild(
"tail",
CubeListBuilder.create().texOffs(0, 13).addBox(-2.0F, -1.5F, 0.0F, 4.0F, 3.0F, 7.0F, new CubeDeformation(0.0F)),
PartPose.offset(0.0F, 1.0F, 4.0F)
);
tail.addOrReplaceChild(
"tail_fin",
CubeListBuilder.create().texOffs(22, 13).addBox(-4.0F, -0.5F, -1.0F, 8.0F, 1.0F, 4.0F, new CubeDeformation(0.0F)),
PartPose.offset(0.0F, 0.0F, 6.0F)
);
body.addOrReplaceChild(
"back_fin",
CubeListBuilder.create().texOffs(42, 0).addBox(-0.5F, -1.0F, 1.0F, 1.0F, 3.0F, 4.0F, new CubeDeformation(0.0F)),
PartPose.offsetAndRotation(0.0F, -1.0F, -2.7F, 0.8727F, 0.0F, 0.0F)
);
return LayerDefinition.create(mesh, 64, 64);
}
}引用的其他类
-
- 引用位置:
继承
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
PartPose.offset(), PartPose.offsetAndRotation()
- 引用位置:
-
- 引用位置:
构造调用 - 关联成员:
CubeDeformation()
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
CubeListBuilder.create()
- 引用位置:
-
- 引用位置:
方法调用/返回值 - 关联成员:
LayerDefinition.create()
- 引用位置:
-
- 引用位置:
构造调用 - 关联成员:
MeshDefinition()
- 引用位置: