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 Details

    • type

      private final TransformationType type
      The field for the type record component.
    • entity

      @Nullable private final @Nullable Entity entity
      The field for the entity record component.
    • playerSkin

      @Nullable private final @Nullable com.mojang.authlib.GameProfile playerSkin
      The field for the playerSkin record component.
    • EMPTY

      public static final Transformation 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

  • Method Details

    • get

      public static Transformation get(Entity entity)
      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

      public void updateState(LivingEntity owner)
      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

      public EntityDimensions scaleDimensions(EntityPose pose, EntityDimensions original)
      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

      public float getEyeHeight(EntityPose pose, float original)
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • type

      public TransformationType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • entity

      @Nullable public @Nullable Entity entity()
      Returns the value of the entity record component.
      Returns:
      the value of the entity record component
    • playerSkin

      @Nullable public @Nullable com.mojang.authlib.GameProfile playerSkin()
      Returns the value of the playerSkin record component.
      Returns:
      the value of the playerSkin record component