Class BlockModelBuilder.RootTransformBuilder
java.lang.Object
net.minecraftforge.client.model.generators.BlockModelBuilder.RootTransformBuilder
- Enclosing class:
- BlockModelBuilder
@Deprecated(forRemoval=true,
since="1.19.4")
public class BlockModelBuilder.RootTransformBuilder
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version.UseTransformationHelper.TransformOrigininstead -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModelBuilder<BlockModelBuilder>.RootTransformsBuilderDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRootTransformBuilder(ModelBuilder<BlockModelBuilder>.RootTransformsBuilder rootTransforms) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionend()Deprecated, for removal: This API element is subject to removal in a future version.Finish configuring the parent builderleftRotation(float x, float y, float z, boolean isDegrees) Deprecated, for removal: This API element is subject to removal in a future version.Sets the left rotation of the root transform.leftRotation(org.joml.Quaternionf leftRotation) Deprecated, for removal: This API element is subject to removal in a future version.Sets the left rotation of the root transform.Deprecated, for removal: This API element is subject to removal in a future version.Sets the origin of the root transform.origin(org.joml.Vector3f origin) Deprecated, for removal: This API element is subject to removal in a future version.Sets the origin of the root transform.postRotation(float x, float y, float z, boolean isDegrees) Deprecated, for removal: This API element is subject to removal in a future version.Sets the right rotation of the root transform.postRotation(org.joml.Quaternionf postRotation) Deprecated, for removal: This API element is subject to removal in a future version.Sets the right rotation of the root transform.rightRotation(float x, float y, float z, boolean isDegrees) Deprecated, for removal: This API element is subject to removal in a future version.Sets the right rotation of the root transform.rightRotation(org.joml.Quaternionf rightRotation) Deprecated, for removal: This API element is subject to removal in a future version.Sets the right rotation of the root transform.rotation(float x, float y, float z, boolean isDegrees) Deprecated, for removal: This API element is subject to removal in a future version.Sets the left rotation of the root transform.rotation(org.joml.Quaternionf rotation) Deprecated, for removal: This API element is subject to removal in a future version.Sets the left rotation of the root transform.scale(float scale) Deprecated, for removal: This API element is subject to removal in a future version.Sets the scale of the root transform.scale(float xScale, float yScale, float zScale) Deprecated, for removal: This API element is subject to removal in a future version.Sets the scale of the root transform.scale(org.joml.Vector3f scale) Deprecated, for removal: This API element is subject to removal in a future version.Sets the scale of the root transform.com.google.gson.JsonObjecttoJson()Deprecated, for removal: This API element is subject to removal in a future version.transform(Transformation transformation) Deprecated, for removal: This API element is subject to removal in a future version.Sets the root transform.translation(float x, float y, float z) Deprecated, for removal: This API element is subject to removal in a future version.Sets the translation of the root transform.translation(org.joml.Vector3f translation) Deprecated, for removal: This API element is subject to removal in a future version.Sets the translation of the root transform.
-
Field Details
-
rootTransforms
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
RootTransformBuilder
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
translation
Deprecated, for removal: This API element is subject to removal in a future version.Sets the translation of the root transform.- Parameters:
translation- the translation- Returns:
- this builder
- Throws:
NullPointerException- iftranslationisnull
-
translation
Deprecated, for removal: This API element is subject to removal in a future version.Sets the translation of the root transform.- Parameters:
x- x translationy- y translationz- z translation- Returns:
- this builder
-
rotation
Deprecated, for removal: This API element is subject to removal in a future version.Sets the left rotation of the root transform.- Parameters:
rotation- the left rotation- Returns:
- this builder
- Throws:
NullPointerException- ifrotationisnull
-
rotation
public BlockModelBuilder.RootTransformBuilder rotation(float x, float y, float z, boolean isDegrees) Deprecated, for removal: This API element is subject to removal in a future version.Sets the left rotation of the root transform.- Parameters:
x- x rotationy- y rotationz- z rotationisDegrees- whether the rotation is in degrees or radians- Returns:
- this builder
-
leftRotation
Deprecated, for removal: This API element is subject to removal in a future version.Sets the left rotation of the root transform.- Parameters:
leftRotation- the left rotation- Returns:
- this builder
- Throws:
NullPointerException- ifleftRotationisnull
-
leftRotation
public BlockModelBuilder.RootTransformBuilder leftRotation(float x, float y, float z, boolean isDegrees) Deprecated, for removal: This API element is subject to removal in a future version.Sets the left rotation of the root transform.- Parameters:
x- x rotationy- y rotationz- z rotationisDegrees- whether the rotation is in degrees or radians- Returns:
- this builder
-
rightRotation
Deprecated, for removal: This API element is subject to removal in a future version.Sets the right rotation of the root transform.- Parameters:
rightRotation- the right rotation- Returns:
- this builder
- Throws:
NullPointerException- ifrightRotationisnull
-
rightRotation
public BlockModelBuilder.RootTransformBuilder rightRotation(float x, float y, float z, boolean isDegrees) Deprecated, for removal: This API element is subject to removal in a future version.Sets the right rotation of the root transform.- Parameters:
x- x rotationy- y rotationz- z rotationisDegrees- whether the rotation is in degrees or radians- Returns:
- this builder
-
postRotation
Deprecated, for removal: This API element is subject to removal in a future version.Sets the right rotation of the root transform.- Parameters:
postRotation- the right rotation- Returns:
- this builder
- Throws:
NullPointerException- ifrightRotationisnull
-
postRotation
public BlockModelBuilder.RootTransformBuilder postRotation(float x, float y, float z, boolean isDegrees) Deprecated, for removal: This API element is subject to removal in a future version.Sets the right rotation of the root transform.- Parameters:
x- x rotationy- y rotationz- z rotationisDegrees- whether the rotation is in degrees or radians- Returns:
- this builder
-
scale
Deprecated, for removal: This API element is subject to removal in a future version.Sets the scale of the root transform.- Parameters:
scale- the scale- Returns:
- this builder
-
scale
Deprecated, for removal: This API element is subject to removal in a future version.Sets the scale of the root transform.- Parameters:
xScale- x scaleyScale- y scalezScale- z scale- Returns:
- this builder
-
scale
Deprecated, for removal: This API element is subject to removal in a future version.Sets the scale of the root transform.- Parameters:
scale- the scale vector- Returns:
- this builder
- Throws:
NullPointerException- ifscaleisnull
-
transform
Deprecated, for removal: This API element is subject to removal in a future version.Sets the root transform.- Parameters:
transformation- the transformation to use- Returns:
- this builder
- Throws:
NullPointerException- iftransformationisnull
-
origin
Deprecated, for removal: This API element is subject to removal in a future version.Sets the origin of the root transform.- Parameters:
origin- the origin vector- Returns:
- this builder
- Throws:
NullPointerException- iforiginisnull
-
origin
public BlockModelBuilder.RootTransformBuilder origin(BlockModelBuilder.RootTransformBuilder.TransformOrigin origin) Deprecated, for removal: This API element is subject to removal in a future version.Sets the origin of the root transform.- Parameters:
origin- the origin name- Returns:
- this builder
- Throws:
NullPointerException- iforiginisnullIllegalArgumentException- iforiginis notcenter,corneroropposing-corner
-
end
Deprecated, for removal: This API element is subject to removal in a future version.Finish configuring the parent builder- Returns:
- the parent block model builder
-
toJson
public com.google.gson.JsonObject toJson()Deprecated, for removal: This API element is subject to removal in a future version.
-
ModelBuilder.RootTransformsBuilderinstead viaModelBuilder.rootTransforms()