Skip to content

Package net.minecraft.client.model.geom

Part 1/1


EntityModelSet

  • Full name: net.minecraft.client.model.geom.EntityModelSet
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/EntityModelSet.java
  • Type: class
  • Modifiers: public

net.minecraft.client.model.geom.EntityModelSet#bakeLayer(ModelLayerLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/EntityModelSet.java:18
  • Modifiers: public
  • Return: ModelPart

คืออะไร

ดำเนินการ bakeLayer ตาม implementation ของ EntityModelSet

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: get(), bakeRoot(). สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: layerDefinition.bakeRoot().

Parameters

  • ModelLayerLocation modelLayerLocation

ตัวอย่างใช้งาน

EntityModelSet instance = ...;
ModelLayerLocation modelLayerLocation = ...;
ModelPart result = instance.bakeLayer(modelLayerLocation);

net.minecraft.client.model.geom.EntityModelSet#EntityModelSet(Map<ModelLayerLocation, LayerDefinition>)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/EntityModelSet.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ EntityModelSet ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: roots.

Parameters

  • Map<ModelLayerLocation, LayerDefinition> map

ตัวอย่างใช้งาน

Map<ModelLayerLocation, LayerDefinition> map = ...;
EntityModelSet instance = new EntityModelSet(map);

net.minecraft.client.model.geom.EntityModelSet#vanilla()

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/EntityModelSet.java:27
  • Modifiers: public static
  • Return: EntityModelSet

คืออะไร

ดำเนินการ vanilla ตาม implementation ของ EntityModelSet

ทำงานยังไง

เรียกต่อ: copyOf(), createRoots(). สร้างออบเจ็กต์: EntityModelSet. คืนค่า: new EntityModelSet(ImmutableMap.copyOf(LayerDefinitions.createRoots())).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

EntityModelSet result = EntityModelSet.vanilla();

LayerDefinitions

  • Full name: net.minecraft.client.model.geom.LayerDefinitions
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/LayerDefinitions.java
  • Type: class
  • Modifiers: public

net.minecraft.client.model.geom.LayerDefinitions#createRoots()

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/LayerDefinitions.java:124
  • Modifiers: public static
  • Return: Map<ModelLayerLocation, LayerDefinition>

คืออะไร

สร้าง Roots

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: builder(), create(), createMesh(), createBodyLayer(), createMobHeadLayer(), createBodyMesh(), createBabyMesh(), scaling(). สร้างออบเจ็กต์: CubeDeformation, IllegalStateException. คืนค่า: immutableMap.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Map<ModelLayerLocation, LayerDefinition> result = LayerDefinitions.createRoots();

ModelLayerLocation

  • Full name: net.minecraft.client.model.geom.ModelLayerLocation
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/ModelLayerLocation.java
  • Type: record
  • Modifiers: public

net.minecraft.client.model.geom.ModelLayerLocation#toString()

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelLayerLocation.java:9
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ ModelLayerLocation

ทำงานยังไง

คืนค่า: this.model + "#" + this.layer.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelLayerLocation instance = ...;
String result = instance.toString();

ModelLayers

  • Full name: net.minecraft.client.model.geom.ModelLayers
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/ModelLayers.java
  • Type: class
  • Modifiers: public

net.minecraft.client.model.geom.ModelLayers#createHangingSignModelName(WoodType,HangingSignRenderer.AttachmentType)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelLayers.java:318
  • Modifiers: public static
  • Return: ModelLayerLocation

คืออะไร

สร้าง Hanging Sign Model Name

ทำงานยังไง

เรียกต่อ: createLocation(), name(), getSerializedName(). คืนค่า: createLocation("hanging_sign/" + woodType.name() + "/" + attachmentType.getSerializedName(), "main").

Parameters

  • WoodType woodType
  • HangingSignRenderer.AttachmentType attachmentType

ตัวอย่างใช้งาน

WoodType woodType = ...;
HangingSignRenderer.AttachmentType attachmentType = ...;
ModelLayerLocation result = ModelLayers.createHangingSignModelName(woodType, attachmentType);

net.minecraft.client.model.geom.ModelLayers#createStandingSignModelName(WoodType)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelLayers.java:310
  • Modifiers: public static
  • Return: ModelLayerLocation

คืออะไร

สร้าง Standing Sign Model Name

ทำงานยังไง

เรียกต่อ: createLocation(), name(). คืนค่า: createLocation("sign/standing/" + woodType.name(), "main").

Parameters

  • WoodType woodType

ตัวอย่างใช้งาน

WoodType woodType = ...;
ModelLayerLocation result = ModelLayers.createStandingSignModelName(woodType);

net.minecraft.client.model.geom.ModelLayers#createWallSignModelName(WoodType)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelLayers.java:314
  • Modifiers: public static
  • Return: ModelLayerLocation

คืออะไร

สร้าง Wall Sign Model Name

ทำงานยังไง

เรียกต่อ: createLocation(), name(). คืนค่า: createLocation("sign/wall/" + woodType.name(), "main").

Parameters

  • WoodType woodType

ตัวอย่างใช้งาน

WoodType woodType = ...;
ModelLayerLocation result = ModelLayers.createWallSignModelName(woodType);

net.minecraft.client.model.geom.ModelLayers#getKnownLocations()

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelLayers.java:322
  • Modifiers: public static
  • Return: Stream<ModelLayerLocation>

คืออะไร

อ่านค่า Known Locations

ทำงานยังไง

เรียกต่อ: stream(). คืนค่า: ALL_MODELS.stream().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Stream<ModelLayerLocation> result = ModelLayers.getKnownLocations();

ModelPart

  • Full name: net.minecraft.client.model.geom.ModelPart
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/ModelPart.java
  • Type: class
  • Modifiers: public final

net.minecraft.client.model.geom.ModelPart#copyFrom(ModelPart)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:70
  • Modifiers: public
  • Return: void

คืออะไร

คัดลอก From

ทำงานยังไง

แก้ state: xScale, yScale, zScale, xRot, yRot, zRot.

Parameters

  • ModelPart modelPart

ตัวอย่างใช้งาน

ModelPart instance = ...;
ModelPart modelPart = ...;
instance.copyFrom(modelPart);

net.minecraft.client.model.geom.ModelPart#getAllParts()

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:199
  • Modifiers: public
  • Return: Stream<ModelPart>

คืออะไร

อ่านค่า All Parts

ทำงานยังไง

เรียกต่อ: concat(), of(), values(), stream(), flatMap(). คืนค่า: Stream.concat(Stream.of(this), this.children.values().stream().flatMap(ModelPart::getAllParts)).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelPart instance = ...;
Stream<ModelPart> result = instance.getAllParts();

net.minecraft.client.model.geom.ModelPart#getChild(String)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:86
  • Modifiers: public
  • Return: ModelPart

คืออะไร

อ่านค่า Child

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(). สร้างออบเจ็กต์: NoSuchElementException. คืนค่า: modelPart.

Parameters

  • String string

ตัวอย่างใช้งาน

ModelPart instance = ...;
ModelPart result = instance.getChild("value");

net.minecraft.client.model.geom.ModelPart#getInitialPose()

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:46
  • Modifiers: public
  • Return: PartPose

คืออะไร

อ่านค่า Initial Pose

ทำงานยังไง

คืนค่า: this.initialPose.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelPart instance = ...;
PartPose result = instance.getInitialPose();

net.minecraft.client.model.geom.ModelPart#getRandomCube(RandomSource)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:173
  • Modifiers: public
  • Return: ModelPart.Cube

คืออะไร

อ่านค่า Random Cube

ทำงานยังไง

เรียกต่อ: get(), nextInt(), size(). คืนค่า: this.cubes.get(randomSource.nextInt(this.cubes.size())).

Parameters

  • RandomSource randomSource

ตัวอย่างใช้งาน

ModelPart instance = ...;
RandomSource randomSource = ...;
ModelPart.Cube result = instance.getRandomCube(randomSource);

net.minecraft.client.model.geom.ModelPart#hasChild(String)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:82
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Child

ทำงานยังไง

เรียกต่อ: containsKey(). คืนค่า: this.children.containsKey(string).

Parameters

  • String string

ตัวอย่างใช้งาน

ModelPart instance = ...;
boolean result = instance.hasChild("value");

net.minecraft.client.model.geom.ModelPart#isEmpty()

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:177
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Empty

ทำงานยังไง

คืนค่า: this.cubes.isEmpty().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelPart instance = ...;
boolean result = instance.isEmpty();

net.minecraft.client.model.geom.ModelPart#loadPose(PartPose)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:58
  • Modifiers: public
  • Return: void

คืออะไร

โหลด Pose

ทำงานยังไง

แก้ state: x, y, z, xRot, yRot, zRot. เรียกต่อ: x(), y(), z(), xRot(), yRot(), zRot(), xScale(), yScale().

Parameters

  • PartPose partPose

ตัวอย่างใช้งาน

ModelPart instance = ...;
PartPose partPose = ...;
instance.loadPose(partPose);

net.minecraft.client.model.geom.ModelPart#ModelPart(List<ModelPart.Cube>,Map<String, ModelPart>)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:37
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ModelPart ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: cubes, children.

Parameters

  • List<ModelPart.Cube> list
  • Map<String, ModelPart> map

ตัวอย่างใช้งาน

List<ModelPart.Cube> list = ...;
Map<String, ModelPart> map = ...;
ModelPart instance = new ModelPart(list, map);

net.minecraft.client.model.geom.ModelPart#offsetPos(Vector3f)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:181
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ offsetPos ตาม implementation ของ ModelPart

ทำงานยังไง

แก้ state: x, y, z. เรียกต่อ: x(), y(), z().

Parameters

  • Vector3f vector3f

ตัวอย่างใช้งาน

ModelPart instance = ...;
Vector3f vector3f = ...;
instance.offsetPos(vector3f);

net.minecraft.client.model.geom.ModelPart#offsetRotation(Vector3f)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:187
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ offsetRotation ตาม implementation ของ ModelPart

ทำงานยังไง

แก้ state: xRot, yRot, zRot. เรียกต่อ: x(), y(), z().

Parameters

  • Vector3f vector3f

ตัวอย่างใช้งาน

ModelPart instance = ...;
Vector3f vector3f = ...;
instance.offsetRotation(vector3f);

net.minecraft.client.model.geom.ModelPart#offsetScale(Vector3f)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:193
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ offsetScale ตาม implementation ของ ModelPart

ทำงานยังไง

แก้ state: xScale, yScale, zScale. เรียกต่อ: x(), y(), z().

Parameters

  • Vector3f vector3f

ตัวอย่างใช้งาน

ModelPart instance = ...;
Vector3f vector3f = ...;
instance.offsetScale(vector3f);

net.minecraft.client.model.geom.ModelPart#render(PoseStack,VertexConsumer,int,int)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:107
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • PoseStack poseStack
  • VertexConsumer vertexConsumer
  • int i
  • int j

ตัวอย่างใช้งาน

ModelPart instance = ...;
PoseStack poseStack = ...;
VertexConsumer vertexConsumer = ...;
instance.render(poseStack, vertexConsumer, 0, 0);

net.minecraft.client.model.geom.ModelPart#render(PoseStack,VertexConsumer,int,int,int)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:111
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmpty(), pushPose(), translateAndRotate(), compile(), last(), values(), popPose().

Parameters

  • PoseStack poseStack
  • VertexConsumer vertexConsumer
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

ModelPart instance = ...;
PoseStack poseStack = ...;
VertexConsumer vertexConsumer = ...;
instance.render(poseStack, vertexConsumer, 0, 0, 0);

net.minecraft.client.model.geom.ModelPart#resetPose()

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:54
  • Modifiers: public
  • Return: void

คืออะไร

รีเซ็ต Pose

ทำงานยังไง

เรียกต่อ: loadPose().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelPart instance = ...;
instance.resetPose();

net.minecraft.client.model.geom.ModelPart#rotateBy(Quaternionf)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:129
  • Modifiers: public
  • Return: void

คืออะไร

หมุน By

ทำงานยังไง

เรียกต่อ: rotationZYX(), rotate(), getEulerAnglesZYX(), setRotation(). สร้างออบเจ็กต์: Matrix3f, Vector3f.

Parameters

  • Quaternionf quaternionf

ตัวอย่างใช้งาน

ModelPart instance = ...;
Quaternionf quaternionf = ...;
instance.rotateBy(quaternionf);

net.minecraft.client.model.geom.ModelPart#setInitialPose(PartPose)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:50
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Initial Pose

ทำงานยังไง

แก้ state: initialPose.

Parameters

  • PartPose partPose

ตัวอย่างใช้งาน

ModelPart instance = ...;
PartPose partPose = ...;
instance.setInitialPose(partPose);

net.minecraft.client.model.geom.ModelPart#setPos(float,float,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:95
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Pos

ทำงานยังไง

แก้ state: x, y, z.

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

ModelPart instance = ...;
instance.setPos(0.0F, 0.0F, 0.0F);

net.minecraft.client.model.geom.ModelPart#setRotation(float,float,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:101
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Rotation

ทำงานยังไง

แก้ state: xRot, yRot, zRot.

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

ModelPart instance = ...;
instance.setRotation(0.0F, 0.0F, 0.0F);

net.minecraft.client.model.geom.ModelPart#storePose()

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:42
  • Modifiers: public
  • Return: PartPose

คืออะไร

ดำเนินการ storePose ตาม implementation ของ ModelPart

ทำงานยังไง

เรียกต่อ: offsetAndRotation(). คืนค่า: PartPose.offsetAndRotation(this.x, this.y, this.z, this.xRot, this.yRot, this.zRot).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelPart instance = ...;
PartPose result = instance.storePose();

net.minecraft.client.model.geom.ModelPart#translateAndRotate(PoseStack)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:156
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ translateAndRotate ตาม implementation ของ ModelPart

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: translate(), mulPose(), rotationZYX(), scale(). สร้างออบเจ็กต์: Quaternionf.

Parameters

  • PoseStack poseStack

ตัวอย่างใช้งาน

ModelPart instance = ...;
PoseStack poseStack = ...;
instance.translateAndRotate(poseStack);

net.minecraft.client.model.geom.ModelPart#visit(PoseStack,ModelPart.Visitor)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:136
  • Modifiers: public
  • Return: void

คืออะไร

เยี่ยมชม node visit

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • PoseStack poseStack
  • ModelPart.Visitor visitor

ตัวอย่างใช้งาน

ModelPart instance = ...;
PoseStack poseStack = ...;
ModelPart.Visitor visitor = ...;
instance.visit(poseStack, visitor);

ModelPart$Cube

  • Full name: net.minecraft.client.model.geom.ModelPart$Cube
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/ModelPart.java
  • Type: class
  • Modifiers: public static

net.minecraft.client.model.geom.ModelPart$Cube#compile(PoseStack.Pose,VertexConsumer,int,int,int)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:279
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ compile ตาม implementation ของ ModelPart$Cube

ทำงานยังไง

มีการวนลูป. เรียกต่อ: pose(), transformNormal(), x(), y(), z(), transformPosition(), addVertex(). สร้างออบเจ็กต์: Vector3f.

Parameters

  • PoseStack.Pose pose
  • VertexConsumer vertexConsumer
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

ModelPart.Cube instance = ...;
PoseStack.Pose pose = ...;
VertexConsumer vertexConsumer = ...;
instance.compile(pose, vertexConsumer, 0, 0, 0);

net.minecraft.client.model.geom.ModelPart$Cube#Cube(int,int,float,float,float,float,float,float,float,float,float,boolean,float,float,Set<Direction>)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:213
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ModelPart.Cube ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: minX, minY, minZ, maxX, maxY, maxZ. เรียกต่อ: size(), Vertex(), contains(), Polygon(). สร้างออบเจ็กต์: ModelPart.Vertex, ModelPart.Polygon.

Parameters

  • int i
  • int j
  • float f
  • float g
  • float h
  • float k
  • float l
  • float m
  • float n
  • float o
  • float p
  • boolean bl
  • float q
  • float r
  • Set<Direction> set

ตัวอย่างใช้งาน

Set<Direction> set = ...;
ModelPart.Cube instance = new ModelPart.Cube(0, 0, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, true, 0.0F, 0.0F, set);

ModelPart$Polygon

  • Full name: net.minecraft.client.model.geom.ModelPart$Polygon
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/ModelPart.java
  • Type: record
  • Modifiers: public

net.minecraft.client.model.geom.ModelPart$Polygon#Polygon(ModelPart.Vertex[],float,float,float,float,float,float,boolean,Direction)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:303
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ModelPart.Polygon ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: step(), remap(), mul().

Parameters

  • ModelPart.Vertex[] vertexs
  • float f
  • float g
  • float h
  • float i
  • float j
  • float k
  • boolean bl
  • Direction direction

ตัวอย่างใช้งาน

ModelPart.Vertex[] vertexs = ...;
Direction direction = ...;
ModelPart.Polygon instance = new ModelPart.Polygon(vertexs, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, true, direction);

ModelPart$Vertex

  • Full name: net.minecraft.client.model.geom.ModelPart$Vertex
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/ModelPart.java
  • Type: record
  • Modifiers: public

net.minecraft.client.model.geom.ModelPart$Vertex#remap(float,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:334
  • Modifiers: public
  • Return: ModelPart.Vertex

คืออะไร

ดำเนินการ remap ตาม implementation ของ ModelPart$Vertex

ทำงานยังไง

เรียกต่อ: Vertex(). สร้างออบเจ็กต์: ModelPart.Vertex. คืนค่า: new ModelPart.Vertex(this.pos, f, g).

Parameters

  • float f
  • float g

ตัวอย่างใช้งาน

ModelPart.Vertex instance = ...;
ModelPart.Vertex result = instance.remap(0.0F, 0.0F);

net.minecraft.client.model.geom.ModelPart$Vertex#Vertex(float,float,float,float,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:330
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ModelPart.Vertex ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

สร้างออบเจ็กต์: Vector3f.

Parameters

  • float f
  • float g
  • float h
  • float i
  • float j

ตัวอย่างใช้งาน

ModelPart.Vertex instance = new ModelPart.Vertex(0.0F, 0.0F, 0.0F, 0.0F, 0.0F);

ModelPart$Visitor

  • Full name: net.minecraft.client.model.geom.ModelPart$Visitor
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/ModelPart.java
  • Type: interface
  • Modifiers: public

net.minecraft.client.model.geom.ModelPart$Visitor#visit(PoseStack.Pose,String,int,ModelPart.Cube)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/ModelPart.java:342
  • Modifiers: ``
  • Return: void

คืออะไร

เยี่ยมชม node visit

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • PoseStack.Pose pose
  • String string
  • int i
  • ModelPart.Cube cube

ตัวอย่างใช้งาน

ModelPart.Visitor instance = ...;
PoseStack.Pose pose = ...;
ModelPart.Cube cube = ...;
instance.visit(pose, "value", 0, cube);

PartPose

  • Full name: net.minecraft.client.model.geom.PartPose
  • Package: net.minecraft.client.model.geom
  • Source: clientOnlynet/minecraft/client/model/geom/PartPose.java
  • Type: record
  • Modifiers: public

net.minecraft.client.model.geom.PartPose#offset(float,float,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/PartPose.java:10
  • Modifiers: public static
  • Return: PartPose

คืออะไร

ดำเนินการ offset ตาม implementation ของ PartPose

ทำงานยังไง

เรียกต่อ: offsetAndRotation(). คืนค่า: offsetAndRotation(f, g, h, 0.0F, 0.0F, 0.0F).

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

PartPose result = PartPose.offset(0.0F, 0.0F, 0.0F);

net.minecraft.client.model.geom.PartPose#offsetAndRotation(float,float,float,float,float,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/PartPose.java:18
  • Modifiers: public static
  • Return: PartPose

คืออะไร

ดำเนินการ offsetAndRotation ตาม implementation ของ PartPose

ทำงานยังไง

สร้างออบเจ็กต์: PartPose. คืนค่า: new PartPose(f, g, h, i, j, k, 1.0F, 1.0F, 1.0F).

Parameters

  • float f
  • float g
  • float h
  • float i
  • float j
  • float k

ตัวอย่างใช้งาน

PartPose result = PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F);

net.minecraft.client.model.geom.PartPose#rotation(float,float,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/PartPose.java:14
  • Modifiers: public static
  • Return: PartPose

คืออะไร

ดำเนินการ rotation ตาม implementation ของ PartPose

ทำงานยังไง

เรียกต่อ: offsetAndRotation(). คืนค่า: offsetAndRotation(0.0F, 0.0F, 0.0F, f, g, h).

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

PartPose result = PartPose.rotation(0.0F, 0.0F, 0.0F);

net.minecraft.client.model.geom.PartPose#scaled(float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/PartPose.java:30
  • Modifiers: public
  • Return: PartPose

คืออะไร

ดำเนินการ scaled ตาม implementation ของ PartPose

ทำงานยังไง

คืนค่า: f == 1.0F ? this : this.scaled(f, f, f).

Parameters

  • float f

ตัวอย่างใช้งาน

PartPose instance = ...;
PartPose result = instance.scaled(0.0F);

net.minecraft.client.model.geom.PartPose#scaled(float,float,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/PartPose.java:34
  • Modifiers: public
  • Return: PartPose

คืออะไร

ดำเนินการ scaled ตาม implementation ของ PartPose

ทำงานยังไง

สร้างออบเจ็กต์: PartPose. คืนค่า: new PartPose(this.x * f, this.y * g, this.z * h, this.xRot, this.yRot, this.zRot, this.xScale * f, this.yScale * g, this.zScale * h).

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

PartPose instance = ...;
PartPose result = instance.scaled(0.0F, 0.0F, 0.0F);

net.minecraft.client.model.geom.PartPose#translated(float,float,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/PartPose.java:22
  • Modifiers: public
  • Return: PartPose

คืออะไร

ดำเนินการ translated ตาม implementation ของ PartPose

ทำงานยังไง

สร้างออบเจ็กต์: PartPose. คืนค่า: new PartPose(this.x + f, this.y + g, this.z + h, this.xRot, this.yRot, this.zRot, this.xScale, this.yScale, this.zScale).

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

PartPose instance = ...;
PartPose result = instance.translated(0.0F, 0.0F, 0.0F);

net.minecraft.client.model.geom.PartPose#withScale(float)

  • Origin: clientOnly
  • Source: net/minecraft/client/model/geom/PartPose.java:26
  • Modifiers: public
  • Return: PartPose

คืออะไร

ดำเนินการ withScale ตาม implementation ของ PartPose

ทำงานยังไง

สร้างออบเจ็กต์: PartPose. คืนค่า: new PartPose(this.x, this.y, this.z, this.xRot, this.yRot, this.zRot, f, f, f).

Parameters

  • float f

ตัวอย่างใช้งาน

PartPose instance = ...;
PartPose result = instance.withScale(0.0F);