Uses of Class
com.mojang.math.Transformation
Package
Description
Extension interfaces for
client
-only classes.-
Uses of Transformation in com.mojang.math
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Transformation>
Transformation.CODEC
static final com.mojang.serialization.Codec<Transformation>
Transformation.EXTENDED_CODEC
Modifier and TypeMethodDescriptionTransformation.compose
(Transformation p_121097_) static Transformation
Transformation.identity()
Transformation.inverse()
Transformation.slerp
(Transformation p_175938_, float p_175939_) Modifier and TypeMethodDescriptionTransformation.compose
(Transformation p_121097_) Transformation.slerp
(Transformation p_175938_, float p_175939_) -
Uses of Transformation in net.minecraft.client.renderer.block.model
Modifier and TypeMethodDescriptionvoid
FaceBakery.applyModelRotation
(org.joml.Vector3f p_254561_, Transformation p_253793_) private void
FaceBakery.bakeVertex
(int[] p_111621_, int p_111622_, Direction p_111623_, BlockFaceUV p_111624_, float[] p_111625_, TextureAtlasSprite p_111626_, Transformation p_111627_, BlockElementRotation p_111628_, boolean p_111629_) private int[]
FaceBakery.makeVertices
(BlockFaceUV p_111574_, TextureAtlasSprite p_111575_, Direction p_111576_, float[] p_111577_, Transformation p_111578_, BlockElementRotation p_111579_, boolean p_111580_) static BlockFaceUV
FaceBakery.recomputeUVs
(BlockFaceUV p_111582_, Direction p_111583_, Transformation p_111584_, ResourceLocation p_111585_) ModifierConstructorDescriptionVariant
(ResourceLocation p_111879_, Transformation p_111880_, boolean p_111881_, int p_111882_) -
Uses of Transformation in net.minecraft.client.resources.model
Modifier and TypeFieldDescriptionprivate final Transformation
BlockModelRotation.transformation
private final Transformation
ModelBakery.BakedCacheKey.transformation
The field for thetransformation
record component.Modifier and TypeMethodDescriptionBlockModelRotation.getRotation()
default Transformation
ModelState.getRotation()
ModelBakery.BakedCacheKey.transformation()
Returns the value of thetransformation
record component.ModifierConstructorDescription(package private)
BakedCacheKey
(ResourceLocation id, Transformation transformation, boolean isUvLocked) Creates an instance of aBakedCacheKey
record class. -
Uses of Transformation in net.minecraft.core
Modifier and TypeFieldDescriptionstatic final Map<Direction,
Transformation> BlockMath.VANILLA_UV_TRANSFORM_GLOBAL_TO_LOCAL
static final Map<Direction,
Transformation> BlockMath.VANILLA_UV_TRANSFORM_LOCAL_TO_GLOBAL
Modifier and TypeMethodDescriptionstatic Transformation
BlockMath.blockCenterToCorner
(Transformation p_121843_) static Transformation
BlockMath.blockCornerToCenter
(Transformation p_175260_) static Transformation
BlockMath.getUVLockTransform
(Transformation p_121845_, Direction p_121846_, Supplier<String> p_121847_) Modifier and TypeMethodDescriptionstatic Transformation
BlockMath.blockCenterToCorner
(Transformation p_121843_) static Transformation
BlockMath.blockCornerToCenter
(Transformation p_175260_) static Transformation
BlockMath.getUVLockTransform
(Transformation p_121845_, Direction p_121846_, Supplier<String> p_121847_) -
Uses of Transformation in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate final Transformation
Display.TransformationInterpolator.current
The field for thecurrent
record component.private final Transformation
Display.TransformationInterpolator.previous
The field for theprevious
record component.Modifier and TypeFieldDescriptionprivate final Display.GenericInterpolator<Transformation>
Display.RenderState.transformation
The field for thetransformation
record component.Modifier and TypeMethodDescriptionprivate static Transformation
Display.createTransformation
(SynchedEntityData p_270278_) Display.TransformationInterpolator.current()
Returns the value of thecurrent
record component.Display.TransformationInterpolator.get
(float p_278027_) Display.TransformationInterpolator.previous()
Returns the value of theprevious
record component.Modifier and TypeMethodDescriptionDisplay.RenderState.transformation()
Returns the value of thetransformation
record component.Modifier and TypeMethodDescriptionprivate void
Display.setTransformation
(Transformation p_270186_) ModifierConstructorDescription(package private)
TransformationInterpolator
(Transformation previous, Transformation current) Creates an instance of aTransformationInterpolator
record class.ModifierConstructorDescriptionRenderState
(Display.GenericInterpolator<Transformation> transformation, Display.BillboardConstraints billboardConstraints, int brightnessOverride, Display.FloatInterpolator shadowRadius, Display.FloatInterpolator shadowStrength, int glowColorOverride) Creates an instance of aRenderState
record class. -
Uses of Transformation in net.neoforged.neoforge.client.extensions
Modifier and TypeMethodDescriptiondefault void
IPoseStackExtension.pushTransformation
(Transformation transformation) Pushes and applies thetransformation
to this pose stack. -
Uses of Transformation in net.neoforged.neoforge.client.model
Modifier and TypeFieldDescriptionprivate static final Transformation
DynamicFluidContainerModel.COVER_TRANSFORM
private static final Transformation
DynamicFluidContainerModel.FLUID_TRANSFORM
private final Transformation
SimpleModelState.transformation
Modifier and TypeMethodDescriptionstatic IQuadTransformer
QuadTransformers.applying
(Transformation transform) Returns a newBakedQuad
transformer that applies the specifiedTransformation
.ModifierConstructorDescriptionSimpleModelState
(Transformation transformation) SimpleModelState
(Transformation transformation, boolean uvLocked) -
Uses of Transformation in net.neoforged.neoforge.client.model.generators
Modifier and TypeMethodDescriptionModelBuilder.RootTransformsBuilder.transform
(Transformation transformation) Sets the root transform. -
Uses of Transformation in net.neoforged.neoforge.client.model.geometry
Modifier and TypeFieldDescriptionprivate @Nullable Transformation
BlockGeometryBakingContext.rootTransform
private Transformation
StandaloneGeometryBakingContext.Builder.rootTransform
private final Transformation
StandaloneGeometryBakingContext.rootTransform
Modifier and TypeMethodDescriptionBlockGeometryBakingContext.getRootTransform()
IGeometryBakingContext.getRootTransform()
Returns the root transformation to be applied to all variants of this model, regardless of item transforms..StandaloneGeometryBakingContext.getRootTransform()
Modifier and TypeMethodDescriptionstatic IQuadTransformer
UnbakedGeometryHelper.applyRootTransform
(ModelState modelState, Transformation rootTransform) Create anIQuadTransformer
to apply aTransformation
that undoes theModelState
transform (blockstate transform), applies the given root transform and then re-applies the blockstate transform.static ModelState
UnbakedGeometryHelper.composeRootTransformIntoModelState
(ModelState modelState, Transformation rootTransform) Returns aModelState
that combines the existing model state and the root transform.void
BlockGeometryBakingContext.setRootTransform
(Transformation rootTransform) StandaloneGeometryBakingContext.Builder.withRootTransform
(Transformation rootTransform) ModifierConstructorDescriptionprivate
StandaloneGeometryBakingContext
(ResourceLocation modelName, Predicate<String> materialCheck, Function<String, Material> materialLookup, boolean isGui3d, boolean useBlockLight, boolean useAmbientOcclusion, ItemTransforms transforms, Transformation rootTransform, @Nullable ResourceLocation renderTypeHint, BiPredicate<String, Boolean> visibilityTest) -
Uses of Transformation in net.neoforged.neoforge.client.model.obj
Modifier and TypeMethodDescriptionObjModel.makeQuad
(int[][] indices, int tintIndex, org.joml.Vector4f colorTint, org.joml.Vector4f ambientColor, TextureAtlasSprite texture, Transformation transform) -
Uses of Transformation in net.neoforged.neoforge.client.model.pipeline
Modifier and TypeFieldDescriptionprivate final Transformation
TransformingVertexPipeline.transformation
ModifierConstructorDescriptionTransformingVertexPipeline
(VertexConsumer parent, Transformation transformation) -
Uses of Transformation in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault Transformation
ITransformationExtension.applyOrigin
(org.joml.Vector3f origin) Returns a new transformation with a changed origin by applying the given parameter (which is relative to the current origin).default Transformation
ITransformationExtension.blockCenterToCorner()
Converts and returns a new transformation based on this transformation from assuming a center-block system to an opposing-corner-block system.default Transformation
ITransformationExtension.blockCornerToCenter()
Converts and returns a new transformation based on this transformation from assuming an opposing-corner-block system to a center-block system.private Transformation
ITransformationExtension.self()
-
Uses of Transformation in net.neoforged.neoforge.common.util
Modifier and TypeMethodDescriptionTransformationHelper.Deserializer.deserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) static Transformation
TransformationHelper.slerp
(Transformation one, Transformation that, float progress) Modifier and TypeMethodDescriptionstatic Transformation
TransformationHelper.slerp
(Transformation one, Transformation that, float progress) -
Uses of Transformation in net.neoforged.neoforge.oldtest.client.model
Modifier and TypeFieldDescriptionprivate final Transformation
MegaModelTest.TestData.transform
The field for thetransform
record component.Modifier and TypeMethodDescriptionMegaModelTest.TestData.transform()
Returns the value of thetransform
record component.ModifierConstructorDescriptionprivate
TestData
(Transformation transform) Creates an instance of aTestData
record class.