Enum Class Scaling.Type

java.lang.Object
java.lang.Enum<Scaling.Type>
net.minecraft.client.texture.Scaling.Type
All Implemented Interfaces:
Serializable, Comparable<Scaling.Type>, Constable, StringIdentifiable
Enclosing interface:
Scaling

@Environment(CLIENT) public static enum Scaling.Type extends Enum<Scaling.Type> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/client/texture/Scaling$Type
intermediary net/minecraft/class_8690$class_8695
official gqs$d
  • Enum Constant Details

    • STRETCH

      public static final Scaling.Type STRETCH
      Mappings:
      Namespace Name Mixin selector
      named STRETCH Lnet/minecraft/client/texture/Scaling$Type;STRETCH:Lnet/minecraft/client/texture/Scaling$Type;
      intermediary field_45656 Lnet/minecraft/class_8690$class_8695;field_45656:Lnet/minecraft/class_8690$class_8695;
      official a Lgqs$d;a:Lgqs$d;
    • TILE

      public static final Scaling.Type TILE
      Mappings:
      Namespace Name Mixin selector
      named TILE Lnet/minecraft/client/texture/Scaling$Type;TILE:Lnet/minecraft/client/texture/Scaling$Type;
      intermediary field_45657 Lnet/minecraft/class_8690$class_8695;field_45657:Lnet/minecraft/class_8690$class_8695;
      official b Lgqs$d;b:Lgqs$d;
    • NINE_SLICE

      public static final Scaling.Type NINE_SLICE
      Mappings:
      Namespace Name Mixin selector
      named NINE_SLICE Lnet/minecraft/client/texture/Scaling$Type;NINE_SLICE:Lnet/minecraft/client/texture/Scaling$Type;
      intermediary field_45658 Lnet/minecraft/class_8690$class_8695;field_45658:Lnet/minecraft/class_8690$class_8695;
      official c Lgqs$d;c:Lgqs$d;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Scaling.Type> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/texture/Scaling$Type;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45659 Lnet/minecraft/class_8690$class_8695;field_45659:Lcom/mojang/serialization/Codec;
      official d Lgqs$d;d:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/client/texture/Scaling$Type;name:Ljava/lang/String;
      intermediary field_45660 Lnet/minecraft/class_8690$class_8695;field_45660:Ljava/lang/String;
      official e Lgqs$d;e:Ljava/lang/String;
    • codec

      private final com.mojang.serialization.MapCodec<? extends Scaling> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/client/texture/Scaling$Type;codec:Lcom/mojang/serialization/MapCodec;
      intermediary field_45661 Lnet/minecraft/class_8690$class_8695;field_45661:Lcom/mojang/serialization/MapCodec;
      official f Lgqs$d;f:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • Type

      private Type(String name, com.mojang.serialization.MapCodec<? extends Scaling> codec)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/Scaling$Type;<init>(Ljava/lang/String;ILjava/lang/String;Lcom/mojang/serialization/MapCodec;)V
      intermediary <init> Lnet/minecraft/class_8690$class_8695;<init>(Ljava/lang/String;ILjava/lang/String;Lcom/mojang/serialization/MapCodec;)V
      official <init> Lgqs$d;<init>(Ljava/lang/String;ILjava/lang/String;Lcom/mojang/serialization/MapCodec;)V
  • Method Details

    • values

      public static Scaling.Type[] 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 Scaling.Type 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
    • 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 Lazu;c()Ljava/lang/String;
    • getCodec

      public com.mojang.serialization.MapCodec<? extends Scaling> getCodec()
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/client/texture/Scaling$Type;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_52886 Lnet/minecraft/class_8690$class_8695;method_52886()Lcom/mojang/serialization/MapCodec;
      official a Lgqs$d;a()Lcom/mojang/serialization/MapCodec;