Package codechicken.lib.vec.uv
Class ScaledIconTransformation
java.lang.Object
codechicken.lib.vec.ITransformation<UV,UVTransformation>
codechicken.lib.vec.uv.UVTransformation
codechicken.lib.vec.uv.IconTransformation
codechicken.lib.vec.uv.ScaledIconTransformation
- All Implemented Interfaces:
IVertexOperation,Copyable<UVTransformation>
-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.lib.render.pipeline.IVertexOperation
IVertexOperation.VertexOperationRegistry -
Field Summary
FieldsFields inherited from class codechicken.lib.vec.uv.IconTransformation
iconFields inherited from class codechicken.lib.vec.uv.UVTransformation
operationIndex -
Constructor Summary
ConstructorsConstructorDescriptionScaledIconTransformation(net.minecraft.client.renderer.texture.TextureAtlasSprite icon) ScaledIconTransformation(net.minecraft.client.renderer.texture.TextureAtlasSprite icon, double su, double sv) -
Method Summary
Methods inherited from class codechicken.lib.vec.uv.IconTransformation
operateMethods inherited from class codechicken.lib.vec.uv.UVTransformation
at, load, operationID, withMethods inherited from class codechicken.lib.vec.ITransformation
$plus$plus, isRedundant, merge
-
Field Details
-
su
public double su -
sv
public double sv
-
-
Constructor Details
-
ScaledIconTransformation
public ScaledIconTransformation(net.minecraft.client.renderer.texture.TextureAtlasSprite icon) -
ScaledIconTransformation
public ScaledIconTransformation(net.minecraft.client.renderer.texture.TextureAtlasSprite icon, double su, double sv) -
ScaledIconTransformation
-
-
Method Details
-
apply
Description copied from class:ITransformationApplies this transformation to vec- Overrides:
applyin classIconTransformation
-
inverse
Description copied from class:ITransformationAttempts to invert the Transformation.The transformations inverse may be itself, or the transform may not have an inverse. In that case a
IrreversibleTransformationExceptionis thrown.- Overrides:
inversein classIconTransformation- Returns:
- The inverse transform.
-
copy
- Specified by:
copyin interfaceCopyable<UVTransformation>- Overrides:
copyin classIconTransformation
-