Record Class SkinTextures.SkinOverride

java.lang.Object
java.lang.Record
net.minecraft.entity.player.SkinTextures.SkinOverride
Record Components:
body -
cape -
elytra -
model -
Enclosing class:
SkinTextures

public static record SkinTextures.SkinOverride(Optional<AssetInfo.TextureAssetInfo> body, Optional<AssetInfo.TextureAssetInfo> cape, Optional<AssetInfo.TextureAssetInfo> elytra, Optional<PlayerSkinType> model) extends Record
Mappings:
Namespace Name
named net/minecraft/entity/player/SkinTextures$SkinOverride
intermediary net/minecraft/class_8685$class_11892
official czp$a
named body
intermediary comp_4765
official d
named cape
intermediary comp_4766
official e
named elytra
intermediary comp_4767
official f
named model
intermediary comp_4768
official g
  • Field Details

    • body

      private final Optional<AssetInfo.TextureAssetInfo> body
      The field for the body record component.
    • cape

      private final Optional<AssetInfo.TextureAssetInfo> cape
      The field for the cape record component.
    • elytra

      private final Optional<AssetInfo.TextureAssetInfo> elytra
      The field for the elytra record component.
    • model

      private final Optional<PlayerSkinType> model
      The field for the model record component.
    • EMPTY

      public static final SkinTextures.SkinOverride EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/entity/player/SkinTextures$SkinOverride;EMPTY:Lnet/minecraft/entity/player/SkinTextures$SkinOverride;
      intermediary field_63029 Lnet/minecraft/class_8685$class_11892;field_63029:Lnet/minecraft/class_8685$class_11892;
      official a Lczp$a;a:Lczp$a;
    • CODEC

      public static final com.mojang.serialization.MapCodec<SkinTextures.SkinOverride> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/player/SkinTextures$SkinOverride;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_62523 Lnet/minecraft/class_8685$class_11892;field_62523:Lcom/mojang/serialization/MapCodec;
      official b Lczp$a;b:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,SkinTextures.SkinOverride> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/entity/player/SkinTextures$SkinOverride;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62524 Lnet/minecraft/class_8685$class_11892;field_62524:Lnet/minecraft/class_9139;
      official c Lczp$a;c:Laae;
  • Constructor Details

  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/entity/player/SkinTextures$SkinOverride;create(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/entity/player/SkinTextures$SkinOverride;
      intermediary method_74885 Lnet/minecraft/class_8685$class_11892;method_74885(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_8685$class_11892;
      official a Lczp$a;a(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lczp$a;
    • 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.
    • body

      Returns the value of the body record component.
      Returns:
      the value of the body record component
    • cape

      Returns the value of the cape record component.
      Returns:
      the value of the cape record component
    • elytra

      Returns the value of the elytra record component.
      Returns:
      the value of the elytra record component
    • model

      public Optional<PlayerSkinType> model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component