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 cdpintermediary net/minecraft/class_8408named net/minecraft/entity/Transformationofficial bintermediary comp_1428named typeofficial cintermediary comp_1429named entityofficial dintermediary comp_1430named playerSkin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TransformationThe field for theentityrecord component.private final @Nullable com.mojang.authlib.GameProfileThe field for theplayerSkinrecord component.private final TransformationTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTransformation(TransformationType transformationType, @Nullable Entity entity, @Nullable com.mojang.authlib.GameProfile gameProfile) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanFly()entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.static TransformationdoublegetCameraOffset(double multiplier) floatgetEyeHeight(EntityPose pose, float original) private floatfloatgetReachDistance(float original) floatgetScale()floatgetStepHeight(float original) final inthashCode()Returns a hash code value for this object.booleanisEmpty()booleanboolean@Nullable com.mojang.authlib.GameProfileReturns the value of theplayerSkinrecord component.scaleDimensions(EntityPose pose, EntityDimensions original) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.voidupdateState(LivingEntity owner)
-
Field Details
-
type
The field for thetyperecord component. -
entity
The field for theentityrecord component. -
playerSkin
The field for theplayerSkinrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official aLcdp;a:Lcdp;intermediary field_44124Lnet/minecraft/class_8408;field_44124:Lnet/minecraft/class_8408;named EMPTYLnet/minecraft/entity/Transformation;EMPTY:Lnet/minecraft/entity/Transformation;
-
-
Constructor Details
-
Transformation
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector official aLcdp;a(Lbir;)Lcdp;intermediary method_50728Lnet/minecraft/class_8408;method_50728(Lnet/minecraft/class_1297;)Lnet/minecraft/class_8408;named getLnet/minecraft/entity/Transformation;get(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/Transformation;
-
updateState
- Mappings:
Namespace Name Mixin selector official aLcdp;a(Lbjh;)Vintermediary method_50729Lnet/minecraft/class_8408;method_50729(Lnet/minecraft/class_1309;)Vnamed updateStateLnet/minecraft/entity/Transformation;updateState(Lnet/minecraft/entity/LivingEntity;)V
-
getScale
public float getScale()- Mappings:
Namespace Name Mixin selector official aLcdp;a()Fintermediary method_50725Lnet/minecraft/class_8408;method_50725()Fnamed getScaleLnet/minecraft/entity/Transformation;getScale()F
-
getCameraOffset
public double getCameraOffset(double multiplier) - Mappings:
Namespace Name Mixin selector official aLcdp;a(D)Dintermediary method_50726Lnet/minecraft/class_8408;method_50726(D)Dnamed getCameraOffsetLnet/minecraft/entity/Transformation;getCameraOffset(D)D
-
getReachDistance
public float getReachDistance(float original) - Mappings:
Namespace Name Mixin selector official aLcdp;a(F)Fintermediary method_50727Lnet/minecraft/class_8408;method_50727(F)Fnamed getReachDistanceLnet/minecraft/entity/Transformation;getReachDistance(F)F
-
getHeightModifier
private float getHeightModifier()- Mappings:
Namespace Name Mixin selector official jLcdp;j()Fintermediary method_50738Lnet/minecraft/class_8408;method_50738()Fnamed getHeightModifierLnet/minecraft/entity/Transformation;getHeightModifier()F
-
scaleDimensions
- Mappings:
Namespace Name Mixin selector official aLcdp;a(Lbjt;Lbis;)Lbis;intermediary method_50731Lnet/minecraft/class_8408;method_50731(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)Lnet/minecraft/class_4048;named scaleDimensionsLnet/minecraft/entity/Transformation;scaleDimensions(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)Lnet/minecraft/entity/EntityDimensions;
-
getEyeHeight
- Mappings:
Namespace Name Mixin selector official aLcdp;a(Lbjt;F)Fintermediary method_50730Lnet/minecraft/class_8408;method_50730(Lnet/minecraft/class_4050;F)Fnamed getEyeHeightLnet/minecraft/entity/Transformation;getEyeHeight(Lnet/minecraft/entity/EntityPose;F)F
-
getStepHeight
public float getStepHeight(float original) - Mappings:
Namespace Name Mixin selector official bLcdp;b(F)Fintermediary method_50733Lnet/minecraft/class_8408;method_50733(F)Fnamed getStepHeightLnet/minecraft/entity/Transformation;getStepHeight(F)F
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official bLcdp;b()Zintermediary method_50732Lnet/minecraft/class_8408;method_50732()Znamed isEmptyLnet/minecraft/entity/Transformation;isEmpty()Z
-
canFly
public boolean canFly()- Mappings:
Namespace Name Mixin selector official cLcdp;c()Zintermediary method_50734Lnet/minecraft/class_8408;method_50734()Znamed canFlyLnet/minecraft/entity/Transformation;canFly()Z
-
canBreatheInWater
public boolean canBreatheInWater()- Mappings:
Namespace Name Mixin selector official dLcdp;d()Zintermediary method_50735Lnet/minecraft/class_8408;method_50735()Znamed canBreatheInWaterLnet/minecraft/entity/Transformation;canBreatheInWater()Z
-
isLandBased
public boolean isLandBased()- Mappings:
Namespace Name Mixin selector official eLcdp;e()Zintermediary method_50736Lnet/minecraft/class_8408;method_50736()Znamed isLandBasedLnet/minecraft/entity/Transformation;isLandBased()Z
-
isHurtByWater
public boolean isHurtByWater()- Mappings:
Namespace Name Mixin selector official fLcdp;f()Zintermediary method_50737Lnet/minecraft/class_8408;method_50737()Znamed isHurtByWaterLnet/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 thetyperecord component.- Returns:
- the value of the
typerecord component
-
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
playerSkin
Returns the value of theplayerSkinrecord component.- Returns:
- the value of the
playerSkinrecord component
-