Enum Class Icons

java.lang.Object
java.lang.Enum<Icons>
net.minecraft.client.util.Icons
All Implemented Interfaces:
Serializable, Comparable<Icons>, Constable

@Environment(CLIENT) public enum Icons extends Enum<Icons>
Mappings:
Namespace Name
official eov
intermediary net/minecraft/class_8518
named net/minecraft/client/util/Icons
  • Enum Constant Details

    • RELEASE

      public static final Icons RELEASE
      Mappings:
      Namespace Name Mixin selector
      official a Leov;a:Leov;
      intermediary field_44650 Lnet/minecraft/class_8518;field_44650:Lnet/minecraft/class_8518;
      named RELEASE Lnet/minecraft/client/util/Icons;RELEASE:Lnet/minecraft/client/util/Icons;
    • SNAPSHOT

      public static final Icons SNAPSHOT
      Mappings:
      Namespace Name Mixin selector
      official b Leov;b:Leov;
      intermediary field_44651 Lnet/minecraft/class_8518;field_44651:Lnet/minecraft/class_8518;
      named SNAPSHOT Lnet/minecraft/client/util/Icons;SNAPSHOT:Lnet/minecraft/client/util/Icons;
  • Field Details

    • path

      private final String[] path
      Mappings:
      Namespace Name Mixin selector
      official c Leov;c:[Ljava/lang/String;
      intermediary field_44652 Lnet/minecraft/class_8518;field_44652:[Ljava/lang/String;
      named path Lnet/minecraft/client/util/Icons;path:[Ljava/lang/String;
  • Constructor Details

    • Icons

      private Icons(String[] path)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leov;<init>(Ljava/lang/String;I[Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_8518;<init>(Ljava/lang/String;I[Ljava/lang/String;)V
      named <init> Lnet/minecraft/client/util/Icons;<init>(Ljava/lang/String;I[Ljava/lang/String;)V
  • Method Details

    • values

      public static Icons[] 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 Icons 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
    • getIcons

      public List<InputSupplier<InputStream>> getIcons(ResourcePack resourcePack) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Leov;a(Laow;)Ljava/util/List;
      intermediary method_51418 Lnet/minecraft/class_8518;method_51418(Lnet/minecraft/class_3262;)Ljava/util/List;
      named getIcons Lnet/minecraft/client/util/Icons;getIcons(Lnet/minecraft/resource/ResourcePack;)Ljava/util/List;
    • getMacIcon

      public InputSupplier<InputStream> getMacIcon(ResourcePack resourcePack) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Leov;b(Laow;)Laqa;
      intermediary method_51420 Lnet/minecraft/class_8518;method_51420(Lnet/minecraft/class_3262;)Lnet/minecraft/class_7367;
      named getMacIcon Lnet/minecraft/client/util/Icons;getMacIcon(Lnet/minecraft/resource/ResourcePack;)Lnet/minecraft/resource/InputSupplier;
    • getIcon

      private InputSupplier<InputStream> getIcon(ResourcePack resourcePack, String fileName) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Leov;a(Laow;Ljava/lang/String;)Laqa;
      intermediary method_51419 Lnet/minecraft/class_8518;method_51419(Lnet/minecraft/class_3262;Ljava/lang/String;)Lnet/minecraft/class_7367;
      named getIcon Lnet/minecraft/client/util/Icons;getIcon(Lnet/minecraft/resource/ResourcePack;Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;