Record Class TransformationType

java.lang.Object
java.lang.Record
net.minecraft.entity.TransformationType
Record Components:
entity -
scale -
playerSkin -

public record TransformationType(Optional<TransformationType.EntityData> entity, float scale, Optional<com.mojang.authlib.GameProfile> playerSkin) extends Record
Mappings:
Namespace Name
official cdq
intermediary net/minecraft/class_8409
named net/minecraft/entity/TransformationType
official e
intermediary comp_1431
named entity
official f
intermediary comp_1432
named scale
official g
intermediary comp_1433
named playerSkin
  • Field Details

    • entity

      private final Optional<TransformationType.EntityData> entity
      The field for the entity record component.
    • scale

      private final float scale
      The field for the scale record component.
    • playerSkin

      private final Optional<com.mojang.authlib.GameProfile> playerSkin
      The field for the playerSkin record component.
    • EMPTY

      public static final TransformationType EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a:Lcdq;
      intermediary field_44125 Lnet/minecraft/class_8409;field_44125:Lnet/minecraft/class_8409;
      named EMPTY Lnet/minecraft/entity/TransformationType;EMPTY:Lnet/minecraft/entity/TransformationType;
    • field_44126

      public static final float field_44126
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcdq;b:F
      intermediary field_44126 Lnet/minecraft/class_8409;field_44126:F
      named field_44126 Lnet/minecraft/entity/TransformationType;field_44126:F
    • field_44127

      public static final float field_44127
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lcdq;c:F
      intermediary field_44127 Lnet/minecraft/class_8409;field_44127:F
      named field_44127 Lnet/minecraft/entity/TransformationType;field_44127:F
    • CODEC

      public static final com.mojang.serialization.Codec<TransformationType> CODEC
      Mappings:
      Namespace Name Mixin selector
      official d Lcdq;d:Lcom/mojang/serialization/Codec;
      intermediary field_44128 Lnet/minecraft/class_8409;field_44128:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/entity/TransformationType;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • toPacket

      public void toPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a(Lsf;)V
      intermediary method_50746 Lnet/minecraft/class_8409;method_50746(Lnet/minecraft/class_2540;)V
      named toPacket Lnet/minecraft/entity/TransformationType;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
    • fromPacket

      public static TransformationType fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Lcdq;b(Lsf;)Lcdq;
      intermediary method_50748 Lnet/minecraft/class_8409;method_50748(Lnet/minecraft/class_2540;)Lnet/minecraft/class_8409;
      named fromPacket Lnet/minecraft/entity/TransformationType;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/entity/TransformationType;
    • createTransformation

      public Transformation createTransformation(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a(Lbjh;)Lcdp;
      intermediary method_50742 Lnet/minecraft/class_8409;method_50742(Lnet/minecraft/class_1309;)Lnet/minecraft/class_8408;
      named createTransformation Lnet/minecraft/entity/TransformationType;createTransformation(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/Transformation;
    • withEntity

      public TransformationType withEntity(EntityType<?> entityType, Optional<NbtCompound> nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a(Lbiv;Ljava/util/Optional;)Lcdq;
      intermediary method_50741 Lnet/minecraft/class_8409;method_50741(Lnet/minecraft/class_1299;Ljava/util/Optional;)Lnet/minecraft/class_8409;
      named withEntity Lnet/minecraft/entity/TransformationType;withEntity(Lnet/minecraft/entity/EntityType;Ljava/util/Optional;)Lnet/minecraft/entity/TransformationType;
    • withEntity

      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a(Ljava/util/Optional;)Lcdq;
      intermediary method_50745 Lnet/minecraft/class_8409;method_50745(Ljava/util/Optional;)Lnet/minecraft/class_8409;
      named withEntity Lnet/minecraft/entity/TransformationType;withEntity(Ljava/util/Optional;)Lnet/minecraft/entity/TransformationType;
    • withScale

      public TransformationType withScale(float scale)
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a(F)Lcdq;
      intermediary method_50740 Lnet/minecraft/class_8409;method_50740(F)Lnet/minecraft/class_8409;
      named withScale Lnet/minecraft/entity/TransformationType;withScale(F)Lnet/minecraft/entity/TransformationType;
    • withSkin

      public TransformationType withSkin(Optional<com.mojang.authlib.GameProfile> skin)
      Mappings:
      Namespace Name Mixin selector
      official b Lcdq;b(Ljava/util/Optional;)Lcdq;
      intermediary method_50747 Lnet/minecraft/class_8409;method_50747(Ljava/util/Optional;)Lnet/minecraft/class_8409;
      named withSkin Lnet/minecraft/entity/TransformationType;withSkin(Ljava/util/Optional;)Lnet/minecraft/entity/TransformationType;
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a()Z
      intermediary method_50739 Lnet/minecraft/class_8409;method_50739()Z
      named isEmpty Lnet/minecraft/entity/TransformationType;isEmpty()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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • entity

      Returns the value of the entity record component.
      Returns:
      the value of the entity record component
    • scale

      public float scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • playerSkin

      public Optional<com.mojang.authlib.GameProfile> playerSkin()
      Returns the value of the playerSkin record component.
      Returns:
      the value of the playerSkin record component