Package net.minecraft.entity
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 cdqintermediary net/minecraft/class_8409named net/minecraft/entity/TransformationTypeofficial eintermediary comp_1431named entityofficial fintermediary comp_1432named scaleofficial gintermediary comp_1433named playerSkin
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TransformationType>static final TransformationTypeprivate final Optional<TransformationType.EntityData>The field for theentityrecord component.static final floatstatic final floatprivate final Optional<com.mojang.authlib.GameProfile>The field for theplayerSkinrecord component.private final floatThe field for thescalerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTransformationType(Optional<TransformationType.EntityData> optional, float float2, Optional<com.mojang.authlib.GameProfile> optional2) -
Method Summary
Modifier and TypeMethodDescriptioncreateTransformation(LivingEntity entity) entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.static TransformationTypefromPacket(PacketByteBuf buf) final inthashCode()Returns a hash code value for this object.booleanisEmpty()Optional<com.mojang.authlib.GameProfile>Returns the value of theplayerSkinrecord component.floatscale()Returns the value of thescalerecord component.voidtoPacket(PacketByteBuf buf) final StringtoString()Returns a string representation of this record class.withEntity(EntityType<?> entityType, Optional<NbtCompound> nbt) withScale(float scale)
-
Field Details
-
entity
The field for theentityrecord component. -
scale
private final float scaleThe field for thescalerecord component. -
playerSkin
The field for theplayerSkinrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official aLcdq;a:Lcdq;intermediary field_44125Lnet/minecraft/class_8409;field_44125:Lnet/minecraft/class_8409;named EMPTYLnet/minecraft/entity/TransformationType;EMPTY:Lnet/minecraft/entity/TransformationType;
-
field_44126
public static final float field_44126- See Also:
- Mappings:
Namespace Name Mixin selector official bLcdq;b:Fintermediary field_44126Lnet/minecraft/class_8409;field_44126:Fnamed field_44126Lnet/minecraft/entity/TransformationType;field_44126:F
-
field_44127
public static final float field_44127- See Also:
- Mappings:
Namespace Name Mixin selector official cLcdq;c:Fintermediary field_44127Lnet/minecraft/class_8409;field_44127:Fnamed field_44127Lnet/minecraft/entity/TransformationType;field_44127:F
-
CODEC
- Mappings:
Namespace Name Mixin selector official dLcdq;d:Lcom/mojang/serialization/Codec;intermediary field_44128Lnet/minecraft/class_8409;field_44128:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/entity/TransformationType;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
TransformationType
public TransformationType(Optional<TransformationType.EntityData> optional, float float2, Optional<com.mojang.authlib.GameProfile> optional2)
-
-
Method Details
-
toPacket
- Mappings:
Namespace Name Mixin selector official aLcdq;a(Lsf;)Vintermediary method_50746Lnet/minecraft/class_8409;method_50746(Lnet/minecraft/class_2540;)Vnamed toPacketLnet/minecraft/entity/TransformationType;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
fromPacket
- Mappings:
Namespace Name Mixin selector official bLcdq;b(Lsf;)Lcdq;intermediary method_50748Lnet/minecraft/class_8409;method_50748(Lnet/minecraft/class_2540;)Lnet/minecraft/class_8409;named fromPacketLnet/minecraft/entity/TransformationType;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/entity/TransformationType;
-
createTransformation
- Mappings:
Namespace Name Mixin selector official aLcdq;a(Lbjh;)Lcdp;intermediary method_50742Lnet/minecraft/class_8409;method_50742(Lnet/minecraft/class_1309;)Lnet/minecraft/class_8408;named createTransformationLnet/minecraft/entity/TransformationType;createTransformation(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/Transformation;
-
withEntity
- Mappings:
Namespace Name Mixin selector official aLcdq;a(Lbiv;Ljava/util/Optional;)Lcdq;intermediary method_50741Lnet/minecraft/class_8409;method_50741(Lnet/minecraft/class_1299;Ljava/util/Optional;)Lnet/minecraft/class_8409;named withEntityLnet/minecraft/entity/TransformationType;withEntity(Lnet/minecraft/entity/EntityType;Ljava/util/Optional;)Lnet/minecraft/entity/TransformationType;
-
withEntity
- Mappings:
Namespace Name Mixin selector official aLcdq;a(Ljava/util/Optional;)Lcdq;intermediary method_50745Lnet/minecraft/class_8409;method_50745(Ljava/util/Optional;)Lnet/minecraft/class_8409;named withEntityLnet/minecraft/entity/TransformationType;withEntity(Ljava/util/Optional;)Lnet/minecraft/entity/TransformationType;
-
withScale
- Mappings:
Namespace Name Mixin selector official aLcdq;a(F)Lcdq;intermediary method_50740Lnet/minecraft/class_8409;method_50740(F)Lnet/minecraft/class_8409;named withScaleLnet/minecraft/entity/TransformationType;withScale(F)Lnet/minecraft/entity/TransformationType;
-
withSkin
- Mappings:
Namespace Name Mixin selector official bLcdq;b(Ljava/util/Optional;)Lcdq;intermediary method_50747Lnet/minecraft/class_8409;method_50747(Ljava/util/Optional;)Lnet/minecraft/class_8409;named withSkinLnet/minecraft/entity/TransformationType;withSkin(Ljava/util/Optional;)Lnet/minecraft/entity/TransformationType;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official aLcdq;a()Zintermediary method_50739Lnet/minecraft/class_8409;method_50739()Znamed isEmptyLnet/minecraft/entity/TransformationType;isEmpty()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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
playerSkin
Returns the value of theplayerSkinrecord component.- Returns:
- the value of the
playerSkinrecord component
-