Class AbstractFileResourcePack

java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
All Implemented Interfaces:
AutoCloseable, ResourcePack
Direct Known Subclasses:
DirectoryResourcePack, ZipResourcePack

public abstract class AbstractFileResourcePack extends Object implements ResourcePack
Mappings:
Namespace Name
official amb
intermediary net/minecraft/class_3255
named net/minecraft/resource/AbstractFileResourcePack
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official c Lamb;c:Lorg/slf4j/Logger;
      intermediary field_14182 Lnet/minecraft/class_3255;field_14182:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/resource/AbstractFileResourcePack;LOGGER:Lorg/slf4j/Logger;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official d Lamb;d:Ljava/lang/String;
      intermediary field_39993 Lnet/minecraft/class_3255;field_39993:Ljava/lang/String;
      named name Lnet/minecraft/resource/AbstractFileResourcePack;name:Ljava/lang/String;
    • alwaysStable

      private final boolean alwaysStable
      Mappings:
      Namespace Name Mixin selector
      official e Lamb;e:Z
      intermediary field_40857 Lnet/minecraft/class_3255;field_40857:Z
      named alwaysStable Lnet/minecraft/resource/AbstractFileResourcePack;alwaysStable:Z
  • Constructor Details

    • AbstractFileResourcePack

      protected AbstractFileResourcePack(String name, boolean alwaysStable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lamb;<init>(Ljava/lang/String;Z)V
      intermediary <init> Lnet/minecraft/class_3255;<init>(Ljava/lang/String;Z)V
      named <init> Lnet/minecraft/resource/AbstractFileResourcePack;<init>(Ljava/lang/String;Z)V
  • Method Details

    • parseMetadata

      @Nullable public <T> T parseMetadata(ResourceMetadataReader<T> metaReader) throws IOException
      Specified by:
      parseMetadata in interface ResourcePack
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lamh;a(Lamt;)Ljava/lang/Object;
      intermediary method_14407 Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_3270;)Ljava/lang/Object;
      named parseMetadata Lnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;
    • parseMetadata

      @Nullable public static <T> T parseMetadata(ResourceMetadataReader<T> metaReader, InputStream inputStream)
      Mappings:
      Namespace Name Mixin selector
      official a Lamb;a(Lamt;Ljava/io/InputStream;)Ljava/lang/Object;
      intermediary method_14392 Lnet/minecraft/class_3255;method_14392(Lnet/minecraft/class_3270;Ljava/io/InputStream;)Ljava/lang/Object;
      named parseMetadata Lnet/minecraft/resource/AbstractFileResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;Ljava/io/InputStream;)Ljava/lang/Object;
    • getName

      public String getName()
      Specified by:
      getName in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      official a Lamh;a()Ljava/lang/String;
      intermediary method_14409 Lnet/minecraft/class_3262;method_14409()Ljava/lang/String;
      named getName Lnet/minecraft/resource/ResourcePack;getName()Ljava/lang/String;
    • isAlwaysStable

      public boolean isAlwaysStable()
      Returns whether the dynamic registry entries from this pack are always "stable"/not experimental.
      Specified by:
      isAlwaysStable in interface ResourcePack
      Returns:
      whether the dynamic registry entries from this pack are always "stable"/not experimental
      Mappings:
      Namespace Name Mixin selector
      official b Lamh;b()Z
      intermediary method_45178 Lnet/minecraft/class_3262;method_45178()Z
      named isAlwaysStable Lnet/minecraft/resource/ResourcePack;isAlwaysStable()Z