Package net.minecraft.entity.decoration
Record Class MannequinInfo
java.lang.Object
java.lang.Record
net.minecraft.entity.decoration.MannequinInfo
- Record Components:
texture-capeTexture-elytraTexture-model-
public record MannequinInfo(Identifier texture, Optional<Identifier> capeTexture, Optional<Identifier> elytraTexture, Model model)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/decoration/MannequinInfointermediary net/minecraft/class_11892official cupnamed textureintermediary comp_4765official enamed capeTextureintermediary comp_4766official fnamed elytraTextureintermediary comp_4767official gnamed modelintermediary comp_4768official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<Identifier> The field for thecapeTexturerecord component.static final com.mojang.serialization.Codec<MannequinInfo> private final Optional<Identifier> The field for theelytraTexturerecord component.private final ModelThe field for themodelrecord component.static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<MannequinInfo, ProfileComponent>> static final PacketCodec<ByteBuf, com.mojang.datafixers.util.Either<MannequinInfo, ProfileComponent>> static final PacketCodec<ByteBuf, MannequinInfo> private final IdentifierThe field for thetexturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMannequinInfo(Identifier identifier, Optional<Identifier> optional, Optional<Identifier> optional2, Model model) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapeTexturerecord component.Returns the value of theelytraTexturerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
texture
The field for thetexturerecord component. -
capeTexture
The field for thecapeTexturerecord component. -
elytraTexture
The field for theelytraTexturerecord component. -
model
The field for themodelrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/decoration/MannequinInfo;CODEC:Lcom/mojang/serialization/Codec;intermediary field_62523Lnet/minecraft/class_11892;field_62523:Lcom/mojang/serialization/Codec;official aLcup;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/decoration/MannequinInfo;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62524Lnet/minecraft/class_11892;field_62524:Lnet/minecraft/class_9139;official bLcup;b:Laae;
-
OR_PROFILE_CODEC
public static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<MannequinInfo,ProfileComponent>> OR_PROFILE_CODEC- Mappings:
Namespace Name Mixin selector named OR_PROFILE_CODECLnet/minecraft/entity/decoration/MannequinInfo;OR_PROFILE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_62525Lnet/minecraft/class_11892;field_62525:Lcom/mojang/serialization/Codec;official cLcup;c:Lcom/mojang/serialization/Codec;
-
OR_PROFILE_PACKET_CODEC
public static final PacketCodec<ByteBuf,com.mojang.datafixers.util.Either<MannequinInfo, OR_PROFILE_PACKET_CODECProfileComponent>> - Mappings:
Namespace Name Mixin selector named OR_PROFILE_PACKET_CODECLnet/minecraft/entity/decoration/MannequinInfo;OR_PROFILE_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62526Lnet/minecraft/class_11892;field_62526:Lnet/minecraft/class_9139;official dLcup;d:Laae;
-
-
Constructor Details
-
MannequinInfo
public MannequinInfo(Identifier identifier, Optional<Identifier> optional, Optional<Identifier> optional2, Model model)
-
-
Method Details
-
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). -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
capeTexture
Returns the value of thecapeTexturerecord component.- Returns:
- the value of the
capeTexturerecord component
-
elytraTexture
Returns the value of theelytraTexturerecord component.- Returns:
- the value of the
elytraTexturerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-