Enum Class PlayerSkinType

java.lang.Object
java.lang.Enum<PlayerSkinType>
net.minecraft.entity.player.PlayerSkinType
All Implemented Interfaces:
Serializable, Comparable<PlayerSkinType>, Constable, StringIdentifiable

public enum PlayerSkinType extends Enum<PlayerSkinType> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/entity/player/PlayerSkinType
intermediary net/minecraft/class_7920
official czo
  • Enum Constant Details

    • SLIM

      public static final PlayerSkinType SLIM
      Mappings:
      Namespace Name Mixin selector
      named SLIM Lnet/minecraft/entity/player/PlayerSkinType;SLIM:Lnet/minecraft/entity/player/PlayerSkinType;
      intermediary field_41122 Lnet/minecraft/class_7920;field_41122:Lnet/minecraft/class_7920;
      official a Lczo;a:Lczo;
    • WIDE

      public static final PlayerSkinType WIDE
      Mappings:
      Namespace Name Mixin selector
      named WIDE Lnet/minecraft/entity/player/PlayerSkinType;WIDE:Lnet/minecraft/entity/player/PlayerSkinType;
      intermediary field_41123 Lnet/minecraft/class_7920;field_41123:Lnet/minecraft/class_7920;
      official b Lczo;b:Lczo;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<PlayerSkinType> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/player/PlayerSkinType;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_62533 Lnet/minecraft/class_7920;field_62533:Lcom/mojang/serialization/Codec;
      official c Lczo;c:Lcom/mojang/serialization/Codec;
    • BY_MODEL_METADATA

      private static final Function<String,PlayerSkinType> BY_MODEL_METADATA
      Mappings:
      Namespace Name Mixin selector
      named BY_MODEL_METADATA Lnet/minecraft/entity/player/PlayerSkinType;BY_MODEL_METADATA:Ljava/util/function/Function;
      intermediary field_62913 Lnet/minecraft/class_7920;field_62913:Ljava/util/function/Function;
      official e Lczo;e:Ljava/util/function/Function;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,PlayerSkinType> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/entity/player/PlayerSkinType;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62534 Lnet/minecraft/class_7920;field_62534:Lnet/minecraft/class_9139;
      official d Lczo;d:Laae;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/entity/player/PlayerSkinType;name:Ljava/lang/String;
      intermediary field_41124 Lnet/minecraft/class_7920;field_41124:Ljava/lang/String;
      official f Lczo;f:Ljava/lang/String;
    • modelMetadata

      private final String modelMetadata
      Mappings:
      Namespace Name Mixin selector
      named modelMetadata Lnet/minecraft/entity/player/PlayerSkinType;modelMetadata:Ljava/lang/String;
      intermediary field_62914 Lnet/minecraft/class_7920;field_62914:Ljava/lang/String;
      official g Lczo;g:Ljava/lang/String;
  • Constructor Details

    • PlayerSkinType

      private PlayerSkinType(String name, String modelMetadata)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/player/PlayerSkinType;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_7920;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
      official <init> Lczo;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
  • Method Details

    • values

      public static PlayerSkinType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlayerSkinType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • byModelMetadata

      public static PlayerSkinType byModelMetadata(@Nullable @Nullable String modelMetadata)
      Mappings:
      Namespace Name Mixin selector
      named byModelMetadata Lnet/minecraft/entity/player/PlayerSkinType;byModelMetadata(Ljava/lang/String;)Lnet/minecraft/entity/player/PlayerSkinType;
      intermediary method_74671 Lnet/minecraft/class_7920;method_74671(Ljava/lang/String;)Lnet/minecraft/class_7920;
      official a Lczo;a(Ljava/lang/String;)Lczo;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbgg;c()Ljava/lang/String;