Package net.minecraft.client.model
Class ModelPart
java.lang.Object
net.minecraft.client.model.ModelPart
@Environment(CLIENT) public final class ModelPart extends Object
- Mappings:
Namespace Name official efbintermediary net/minecraft/class_630named net/minecraft/client/model/ModelPart
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelPart.Cuboid(package private) static classModelPart.Quad(package private) static classModelPart.Vertex -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidcopyTransform(ModelPart part)ModelPartgetChild(String name)ModelPart.CuboidgetRandomCuboid(Random random)ModelTransformgetTransform()booleanisEmpty()voidmethod_33425(float float2, float float3, float float4)voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay)voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)private voidrenderCuboids(MatrixStack.Entry entry, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha)voidrotate(MatrixStack matrix)voidsetPivot(float x, float y, float z)voidsetTransform(ModelTransform rotationData)Stream<ModelPart>traverse()
-
Field Details
-
pivotX
public float pivotX- Mappings:
Namespace Name Mixin selector official aLefb;a:Fintermediary field_3657Lnet/minecraft/class_630;field_3657:Fnamed pivotXLnet/minecraft/client/model/ModelPart;pivotX:F
-
pivotY
public float pivotY- Mappings:
Namespace Name Mixin selector official bLefb;b:Fintermediary field_3656Lnet/minecraft/class_630;field_3656:Fnamed pivotYLnet/minecraft/client/model/ModelPart;pivotY:F
-
pivotZ
public float pivotZ- Mappings:
Namespace Name Mixin selector official cLefb;c:Fintermediary field_3655Lnet/minecraft/class_630;field_3655:Fnamed pivotZLnet/minecraft/client/model/ModelPart;pivotZ:F
-
pitch
public float pitch- Mappings:
Namespace Name Mixin selector official dLefb;d:Fintermediary field_3654Lnet/minecraft/class_630;field_3654:Fnamed pitchLnet/minecraft/client/model/ModelPart;pitch:F
-
yaw
public float yaw- Mappings:
Namespace Name Mixin selector official eLefb;e:Fintermediary field_3675Lnet/minecraft/class_630;field_3675:Fnamed yawLnet/minecraft/client/model/ModelPart;yaw:F
-
roll
public float roll- Mappings:
Namespace Name Mixin selector official fLefb;f:Fintermediary field_3674Lnet/minecraft/class_630;field_3674:Fnamed rollLnet/minecraft/client/model/ModelPart;roll:F
-
visible
public boolean visible- Mappings:
Namespace Name Mixin selector official gLefb;g:Zintermediary field_3665Lnet/minecraft/class_630;field_3665:Znamed visibleLnet/minecraft/client/model/ModelPart;visible:Z
-
cuboids
- Mappings:
Namespace Name Mixin selector official hLefb;h:Ljava/util/List;intermediary field_3663Lnet/minecraft/class_630;field_3663:Ljava/util/List;named cuboidsLnet/minecraft/client/model/ModelPart;cuboids:Ljava/util/List;
-
children
- Mappings:
Namespace Name Mixin selector official iLefb;i:Ljava/util/Map;intermediary field_3661Lnet/minecraft/class_630;field_3661:Ljava/util/Map;named childrenLnet/minecraft/client/model/ModelPart;children:Ljava/util/Map;
-
-
Constructor Details
-
ModelPart
- Mappings:
Namespace Name Mixin selector official <init>Lefb;<init>(Ljava/util/List;Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_630;<init>(Ljava/util/List;Ljava/util/Map;)Vnamed <init>Lnet/minecraft/client/model/ModelPart;<init>(Ljava/util/List;Ljava/util/Map;)V
-
-
Method Details
-
getTransform
- Mappings:
Namespace Name Mixin selector official aLefb;a()Lefd;intermediary method_32084Lnet/minecraft/class_630;method_32084()Lnet/minecraft/class_5603;named getTransformLnet/minecraft/client/model/ModelPart;getTransform()Lnet/minecraft/client/model/ModelTransform;
-
setTransform
- Mappings:
Namespace Name Mixin selector official aLefb;a(Lefd;)Vintermediary method_32085Lnet/minecraft/class_630;method_32085(Lnet/minecraft/class_5603;)Vnamed setTransformLnet/minecraft/client/model/ModelPart;setTransform(Lnet/minecraft/client/model/ModelTransform;)V
-
copyTransform
- Mappings:
Namespace Name Mixin selector official aLefb;a(Lefb;)Vintermediary method_17138Lnet/minecraft/class_630;method_17138(Lnet/minecraft/class_630;)Vnamed copyTransformLnet/minecraft/client/model/ModelPart;copyTransform(Lnet/minecraft/client/model/ModelPart;)V
-
getChild
- Mappings:
Namespace Name Mixin selector official aLefb;a(Ljava/lang/String;)Lefb;intermediary method_32086Lnet/minecraft/class_630;method_32086(Ljava/lang/String;)Lnet/minecraft/class_630;named getChildLnet/minecraft/client/model/ModelPart;getChild(Ljava/lang/String;)Lnet/minecraft/client/model/ModelPart;
-
setPivot
public void setPivot(float x, float y, float z)- Mappings:
Namespace Name Mixin selector official aLefb;a(FFF)Vintermediary method_2851Lnet/minecraft/class_630;method_2851(FFF)Vnamed setPivotLnet/minecraft/client/model/ModelPart;setPivot(FFF)V
-
method_33425
public void method_33425(float float2, float float3, float float4)- Mappings:
Namespace Name Mixin selector official bLefb;b(FFF)Vintermediary method_33425Lnet/minecraft/class_630;method_33425(FFF)Vnamed method_33425Lnet/minecraft/client/model/ModelPart;method_33425(FFF)V
-
render
- Mappings:
Namespace Name Mixin selector official aLefb;a(Ldnl;Ldnp;II)Vintermediary method_22698Lnet/minecraft/class_630;method_22698(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;II)Vnamed renderLnet/minecraft/client/model/ModelPart;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;II)V
-
render
public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)- Mappings:
Namespace Name Mixin selector official aLefb;a(Ldnl;Ldnp;IIFFFF)Vintermediary method_22699Lnet/minecraft/class_630;method_22699(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;IIFFFF)Vnamed renderLnet/minecraft/client/model/ModelPart;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;IIFFFF)V
-
rotate
- Mappings:
Namespace Name Mixin selector official aLefb;a(Ldnl;)Vintermediary method_22703Lnet/minecraft/class_630;method_22703(Lnet/minecraft/class_4587;)Vnamed rotateLnet/minecraft/client/model/ModelPart;rotate(Lnet/minecraft/client/util/math/MatrixStack;)V
-
renderCuboids
private void renderCuboids(MatrixStack.Entry entry, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha)- Mappings:
Namespace Name Mixin selector official aLefb;a(Ldnl$a;Ldnp;IIFFFF)Vintermediary method_22702Lnet/minecraft/class_630;method_22702(Lnet/minecraft/class_4587$class_4665;Lnet/minecraft/class_4588;IIFFFF)Vnamed renderCuboidsLnet/minecraft/client/model/ModelPart;renderCuboids(Lnet/minecraft/client/util/math/MatrixStack$Entry;Lnet/minecraft/client/render/VertexConsumer;IIFFFF)V
-
getRandomCuboid
- Mappings:
Namespace Name Mixin selector official aLefb;a(Ljava/util/Random;)Lefb$a;intermediary method_22700Lnet/minecraft/class_630;method_22700(Ljava/util/Random;)Lnet/minecraft/class_630$class_628;named getRandomCuboidLnet/minecraft/client/model/ModelPart;getRandomCuboid(Ljava/util/Random;)Lnet/minecraft/client/model/ModelPart$Cuboid;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official bLefb;b()Zintermediary method_32087Lnet/minecraft/class_630;method_32087()Znamed isEmptyLnet/minecraft/client/model/ModelPart;isEmpty()Z
-
traverse
- Mappings:
Namespace Name Mixin selector official cLefb;c()Ljava/util/stream/Stream;intermediary method_32088Lnet/minecraft/class_630;method_32088()Ljava/util/stream/Stream;named traverseLnet/minecraft/client/model/ModelPart;traverse()Ljava/util/stream/Stream;
-