Package net.minecraft.entity
Record Class Transformation
java.lang.Object
java.lang.Record
net.minecraft.entity.Transformation
- Record Components:
type
-entity
-playerSkin
-
public record Transformation(TransformationType type, @Nullable Entity entity, @Nullable com.mojang.authlib.GameProfile playerSkin)
extends Record
- Mappings:
Namespace Name official cdp
intermediary net/minecraft/class_8408
named net/minecraft/entity/Transformation
official b
intermediary comp_1428
named type
official c
intermediary comp_1429
named entity
official d
intermediary comp_1430
named playerSkin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Transformation
The field for theentity
record component.private final @Nullable com.mojang.authlib.GameProfile
The field for theplayerSkin
record component.private final TransformationType
The field for thetype
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTransformation
(TransformationType transformationType, @Nullable Entity entity, @Nullable com.mojang.authlib.GameProfile gameProfile) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canFly()
entity()
Returns the value of theentity
record component.final boolean
Indicates whether some other object is "equal to" this one.static Transformation
double
getCameraOffset
(double multiplier) float
getEyeHeight
(EntityPose pose, float original) private float
float
getReachDistance
(float original) float
getScale()
float
getStepHeight
(float original) final int
hashCode()
Returns a hash code value for this object.boolean
isEmpty()
boolean
boolean
@Nullable com.mojang.authlib.GameProfile
Returns the value of theplayerSkin
record component.scaleDimensions
(EntityPose pose, EntityDimensions original) final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.void
updateState
(LivingEntity owner)
-
Field Details
-
type
The field for thetype
record component. -
entity
The field for theentity
record component. -
playerSkin
The field for theplayerSkin
record component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lcdp;a:Lcdp;
intermediary field_44124
Lnet/minecraft/class_8408;field_44124:Lnet/minecraft/class_8408;
named EMPTY
Lnet/minecraft/entity/Transformation;EMPTY:Lnet/minecraft/entity/Transformation;
-
-
Constructor Details
-
Transformation
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector official a
Lcdp;a(Lbir;)Lcdp;
intermediary method_50728
Lnet/minecraft/class_8408;method_50728(Lnet/minecraft/class_1297;)Lnet/minecraft/class_8408;
named get
Lnet/minecraft/entity/Transformation;get(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/Transformation;
-
updateState
- Mappings:
Namespace Name Mixin selector official a
Lcdp;a(Lbjh;)V
intermediary method_50729
Lnet/minecraft/class_8408;method_50729(Lnet/minecraft/class_1309;)V
named updateState
Lnet/minecraft/entity/Transformation;updateState(Lnet/minecraft/entity/LivingEntity;)V
-
getScale
public float getScale()- Mappings:
Namespace Name Mixin selector official a
Lcdp;a()F
intermediary method_50725
Lnet/minecraft/class_8408;method_50725()F
named getScale
Lnet/minecraft/entity/Transformation;getScale()F
-
getCameraOffset
public double getCameraOffset(double multiplier) - Mappings:
Namespace Name Mixin selector official a
Lcdp;a(D)D
intermediary method_50726
Lnet/minecraft/class_8408;method_50726(D)D
named getCameraOffset
Lnet/minecraft/entity/Transformation;getCameraOffset(D)D
-
getReachDistance
public float getReachDistance(float original) - Mappings:
Namespace Name Mixin selector official a
Lcdp;a(F)F
intermediary method_50727
Lnet/minecraft/class_8408;method_50727(F)F
named getReachDistance
Lnet/minecraft/entity/Transformation;getReachDistance(F)F
-
getHeightModifier
private float getHeightModifier()- Mappings:
Namespace Name Mixin selector official j
Lcdp;j()F
intermediary method_50738
Lnet/minecraft/class_8408;method_50738()F
named getHeightModifier
Lnet/minecraft/entity/Transformation;getHeightModifier()F
-
scaleDimensions
- Mappings:
Namespace Name Mixin selector official a
Lcdp;a(Lbjt;Lbis;)Lbis;
intermediary method_50731
Lnet/minecraft/class_8408;method_50731(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)Lnet/minecraft/class_4048;
named scaleDimensions
Lnet/minecraft/entity/Transformation;scaleDimensions(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)Lnet/minecraft/entity/EntityDimensions;
-
getEyeHeight
- Mappings:
Namespace Name Mixin selector official a
Lcdp;a(Lbjt;F)F
intermediary method_50730
Lnet/minecraft/class_8408;method_50730(Lnet/minecraft/class_4050;F)F
named getEyeHeight
Lnet/minecraft/entity/Transformation;getEyeHeight(Lnet/minecraft/entity/EntityPose;F)F
-
getStepHeight
public float getStepHeight(float original) - Mappings:
Namespace Name Mixin selector official b
Lcdp;b(F)F
intermediary method_50733
Lnet/minecraft/class_8408;method_50733(F)F
named getStepHeight
Lnet/minecraft/entity/Transformation;getStepHeight(F)F
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official b
Lcdp;b()Z
intermediary method_50732
Lnet/minecraft/class_8408;method_50732()Z
named isEmpty
Lnet/minecraft/entity/Transformation;isEmpty()Z
-
canFly
public boolean canFly()- Mappings:
Namespace Name Mixin selector official c
Lcdp;c()Z
intermediary method_50734
Lnet/minecraft/class_8408;method_50734()Z
named canFly
Lnet/minecraft/entity/Transformation;canFly()Z
-
canBreatheInWater
public boolean canBreatheInWater()- Mappings:
Namespace Name Mixin selector official d
Lcdp;d()Z
intermediary method_50735
Lnet/minecraft/class_8408;method_50735()Z
named canBreatheInWater
Lnet/minecraft/entity/Transformation;canBreatheInWater()Z
-
isLandBased
public boolean isLandBased()- Mappings:
Namespace Name Mixin selector official e
Lcdp;e()Z
intermediary method_50736
Lnet/minecraft/class_8408;method_50736()Z
named isLandBased
Lnet/minecraft/entity/Transformation;isLandBased()Z
-
isHurtByWater
public boolean isHurtByWater()- Mappings:
Namespace Name Mixin selector official f
Lcdp;f()Z
intermediary method_50737
Lnet/minecraft/class_8408;method_50737()Z
named isHurtByWater
Lnet/minecraft/entity/Transformation;isHurtByWater()Z
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
entity
Returns the value of theentity
record component.- Returns:
- the value of the
entity
record component
-
playerSkin
Returns the value of theplayerSkin
record component.- Returns:
- the value of the
playerSkin
record component
-