Class DefaultResourcePackBuilder

java.lang.Object
net.minecraft.resource.DefaultResourcePackBuilder

public class DefaultResourcePackBuilder extends Object
Mappings:
Namespace Name
official aml
intermediary net/minecraft/class_7665
named net/minecraft/resource/DefaultResourcePackBuilder
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Laml;b:Lorg/slf4j/Logger;
      intermediary field_40005 Lnet/minecraft/class_7665;field_40005:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/resource/DefaultResourcePackBuilder;LOGGER:Lorg/slf4j/Logger;
    • callback

      public static Consumer<DefaultResourcePackBuilder> callback
      Mappings:
      Namespace Name Mixin selector
      official a Laml;a:Ljava/util/function/Consumer;
      intermediary field_40004 Lnet/minecraft/class_7665;field_40004:Ljava/util/function/Consumer;
      named callback Lnet/minecraft/resource/DefaultResourcePackBuilder;callback:Ljava/util/function/Consumer;
    • RESOURCE_TYPE_TO_PATH

      private static final Map<ResourceType,Path> RESOURCE_TYPE_TO_PATH
      Mappings:
      Namespace Name Mixin selector
      official c Laml;c:Ljava/util/Map;
      intermediary field_40006 Lnet/minecraft/class_7665;field_40006:Ljava/util/Map;
      named RESOURCE_TYPE_TO_PATH Lnet/minecraft/resource/DefaultResourcePackBuilder;RESOURCE_TYPE_TO_PATH:Ljava/util/Map;
    • rootPaths

      private final Set<Path> rootPaths
      Mappings:
      Namespace Name Mixin selector
      official d Laml;d:Ljava/util/Set;
      intermediary field_40007 Lnet/minecraft/class_7665;field_40007:Ljava/util/Set;
      named rootPaths Lnet/minecraft/resource/DefaultResourcePackBuilder;rootPaths:Ljava/util/Set;
    • paths

      private final Map<ResourceType,Set<Path>> paths
      Mappings:
      Namespace Name Mixin selector
      official e Laml;e:Ljava/util/Map;
      intermediary field_40008 Lnet/minecraft/class_7665;field_40008:Ljava/util/Map;
      named paths Lnet/minecraft/resource/DefaultResourcePackBuilder;paths:Ljava/util/Map;
    • metadataMap

      private ResourceMetadataMap metadataMap
      Mappings:
      Namespace Name Mixin selector
      official f Laml;f:Lamc;
      intermediary field_40009 Lnet/minecraft/class_7665;field_40009:Lnet/minecraft/class_7662;
      named metadataMap Lnet/minecraft/resource/DefaultResourcePackBuilder;metadataMap:Lnet/minecraft/resource/metadata/ResourceMetadataMap;
    • namespaces

      private final Set<String> namespaces
      Mappings:
      Namespace Name Mixin selector
      official g Laml;g:Ljava/util/Set;
      intermediary field_40010 Lnet/minecraft/class_7665;field_40010:Ljava/util/Set;
      named namespaces Lnet/minecraft/resource/DefaultResourcePackBuilder;namespaces:Ljava/util/Set;
  • Constructor Details

    • DefaultResourcePackBuilder

      public DefaultResourcePackBuilder()
  • Method Details

    • toPath

      private static Path toPath(URI uri) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Laml;a(Ljava/net/URI;)Ljava/nio/file/Path;
      intermediary method_45203 Lnet/minecraft/class_7665;method_45203(Ljava/net/URI;)Ljava/nio/file/Path;
      named toPath Lnet/minecraft/resource/DefaultResourcePackBuilder;toPath(Ljava/net/URI;)Ljava/nio/file/Path;
    • exists

      private boolean exists(Path path)
      Mappings:
      Namespace Name Mixin selector
      official b Laml;b(Ljava/nio/file/Path;)Z
      intermediary method_45209 Lnet/minecraft/class_7665;method_45209(Ljava/nio/file/Path;)Z
      named exists Lnet/minecraft/resource/DefaultResourcePackBuilder;exists(Ljava/nio/file/Path;)Z
    • addRootPath

      private void addRootPath(Path path)
      Mappings:
      Namespace Name Mixin selector
      official c Laml;c(Ljava/nio/file/Path;)V
      intermediary method_45212 Lnet/minecraft/class_7665;method_45212(Ljava/nio/file/Path;)V
      named addRootPath Lnet/minecraft/resource/DefaultResourcePackBuilder;addRootPath(Ljava/nio/file/Path;)V
    • addPath

      private void addPath(ResourceType type, Path path)
      Mappings:
      Namespace Name Mixin selector
      official b Laml;b(Lami;Ljava/nio/file/Path;)V
      intermediary method_45208 Lnet/minecraft/class_7665;method_45208(Lnet/minecraft/class_3264;Ljava/nio/file/Path;)V
      named addPath Lnet/minecraft/resource/DefaultResourcePackBuilder;addPath(Lnet/minecraft/resource/ResourceType;Ljava/nio/file/Path;)V
    • withDefaultPaths

      public DefaultResourcePackBuilder withDefaultPaths()
      Mappings:
      Namespace Name Mixin selector
      official a Laml;a()Laml;
      intermediary method_45197 Lnet/minecraft/class_7665;method_45197()Lnet/minecraft/class_7665;
      named withDefaultPaths Lnet/minecraft/resource/DefaultResourcePackBuilder;withDefaultPaths()Lnet/minecraft/resource/DefaultResourcePackBuilder;
    • withPaths

      public DefaultResourcePackBuilder withPaths(ResourceType type, Class<?> clazz)
      Mappings:
      Namespace Name Mixin selector
      official a Laml;a(Lami;Ljava/lang/Class;)Laml;
      intermediary method_45200 Lnet/minecraft/class_7665;method_45200(Lnet/minecraft/class_3264;Ljava/lang/Class;)Lnet/minecraft/class_7665;
      named withPaths Lnet/minecraft/resource/DefaultResourcePackBuilder;withPaths(Lnet/minecraft/resource/ResourceType;Ljava/lang/Class;)Lnet/minecraft/resource/DefaultResourcePackBuilder;
    • runCallback

      public DefaultResourcePackBuilder runCallback()
      Mappings:
      Namespace Name Mixin selector
      official b Laml;b()Laml;
      intermediary method_45207 Lnet/minecraft/class_7665;method_45207()Lnet/minecraft/class_7665;
      named runCallback Lnet/minecraft/resource/DefaultResourcePackBuilder;runCallback()Lnet/minecraft/resource/DefaultResourcePackBuilder;
    • withRoot

      public DefaultResourcePackBuilder withRoot(Path root)
      Mappings:
      Namespace Name Mixin selector
      official a Laml;a(Ljava/nio/file/Path;)Laml;
      intermediary method_45204 Lnet/minecraft/class_7665;method_45204(Ljava/nio/file/Path;)Lnet/minecraft/class_7665;
      named withRoot Lnet/minecraft/resource/DefaultResourcePackBuilder;withRoot(Ljava/nio/file/Path;)Lnet/minecraft/resource/DefaultResourcePackBuilder;
    • withPath

      public DefaultResourcePackBuilder withPath(ResourceType type, Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Laml;a(Lami;Ljava/nio/file/Path;)Laml;
      intermediary method_45201 Lnet/minecraft/class_7665;method_45201(Lnet/minecraft/class_3264;Ljava/nio/file/Path;)Lnet/minecraft/class_7665;
      named withPath Lnet/minecraft/resource/DefaultResourcePackBuilder;withPath(Lnet/minecraft/resource/ResourceType;Ljava/nio/file/Path;)Lnet/minecraft/resource/DefaultResourcePackBuilder;
    • withMetadataMap

      public DefaultResourcePackBuilder withMetadataMap(ResourceMetadataMap metadataMap)
      Mappings:
      Namespace Name Mixin selector
      official a Laml;a(Lamc;)Laml;
      intermediary method_45198 Lnet/minecraft/class_7665;method_45198(Lnet/minecraft/class_7662;)Lnet/minecraft/class_7665;
      named withMetadataMap Lnet/minecraft/resource/DefaultResourcePackBuilder;withMetadataMap(Lnet/minecraft/resource/metadata/ResourceMetadataMap;)Lnet/minecraft/resource/DefaultResourcePackBuilder;
    • withNamespaces

      public DefaultResourcePackBuilder withNamespaces(String[] namespaces)
      Mappings:
      Namespace Name Mixin selector
      official a Laml;a([Ljava/lang/String;)Laml;
      intermediary method_45206 Lnet/minecraft/class_7665;method_45206([Ljava/lang/String;)Lnet/minecraft/class_7665;
      named withNamespaces Lnet/minecraft/resource/DefaultResourcePackBuilder;withNamespaces([Ljava/lang/String;)Lnet/minecraft/resource/DefaultResourcePackBuilder;
    • build

      public DefaultResourcePack build()
      Mappings:
      Namespace Name Mixin selector
      official c Laml;c()Lamk;
      intermediary method_45210 Lnet/minecraft/class_7665;method_45210()Lnet/minecraft/class_3268;
      named build Lnet/minecraft/resource/DefaultResourcePackBuilder;build()Lnet/minecraft/resource/DefaultResourcePack;
    • reverse

      private static List<Path> reverse(Collection<Path> paths)
      Mappings:
      Namespace Name Mixin selector
      official a Laml;a(Ljava/util/Collection;)Ljava/util/List;
      intermediary method_45205 Lnet/minecraft/class_7665;method_45205(Ljava/util/Collection;)Ljava/util/List;
      named reverse Lnet/minecraft/resource/DefaultResourcePackBuilder;reverse(Ljava/util/Collection;)Ljava/util/List;