Class ResourcePackProfile

java.lang.Object
net.minecraft.resource.ResourcePackProfile

public class ResourcePackProfile extends Object
Represents a resource pack in a ResourcePackManager.

Compared to a single-use ResourcePack, a profile is persistent and serves as a factory for the single-use packs. It also contains user-friendly information about resource packs.

The profiles are registered by ResourcePackProviders.

Closing the profile doesn't have any effect.

Mappings:
Namespace Name
named net/minecraft/resource/ResourcePackProfile
intermediary net/minecraft/class_3288
official atm
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/resource/ResourcePackProfile;LOGGER:Lorg/slf4j/Logger;
      intermediary field_14279 Lnet/minecraft/class_3288;field_14279:Lorg/slf4j/Logger;
      official a Latm;a:Lorg/slf4j/Logger;
    • info

      private final ResourcePackInfo info
      Mappings:
      Namespace Name Mixin selector
      named info Lnet/minecraft/resource/ResourcePackProfile;info:Lnet/minecraft/resource/ResourcePackInfo;
      intermediary field_49037 Lnet/minecraft/class_3288;field_49037:Lnet/minecraft/class_9224;
      official b Latm;b:Lasp;
    • packFactory

      private final ResourcePackProfile.PackFactory packFactory
      Mappings:
      Namespace Name Mixin selector
      named packFactory Lnet/minecraft/resource/ResourcePackProfile;packFactory:Lnet/minecraft/resource/ResourcePackProfile$PackFactory;
      intermediary field_14273 Lnet/minecraft/class_3288;field_14273:Lnet/minecraft/class_3288$class_7680;
      official c Latm;c:Latm$c;
    • metaData

      private final ResourcePackProfile.Metadata metaData
      Mappings:
      Namespace Name Mixin selector
      named metaData Lnet/minecraft/resource/ResourcePackProfile;metaData:Lnet/minecraft/resource/ResourcePackProfile$Metadata;
      intermediary field_49038 Lnet/minecraft/class_3288;field_49038:Lnet/minecraft/class_3288$class_7679;
      official d Latm;d:Latm$a;
    • position

      private final ResourcePackPosition position
      Mappings:
      Namespace Name Mixin selector
      named position Lnet/minecraft/resource/ResourcePackProfile;position:Lnet/minecraft/resource/ResourcePackPosition;
      intermediary field_49039 Lnet/minecraft/class_3288;field_49039:Lnet/minecraft/class_9225;
      official e Latm;e:Lasr;
  • Constructor Details

    • ResourcePackProfile

      public ResourcePackProfile(ResourcePackInfo info, ResourcePackProfile.PackFactory packFactory, ResourcePackProfile.Metadata metaData, ResourcePackPosition position)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/resource/ResourcePackProfile;<init>(Lnet/minecraft/resource/ResourcePackInfo;Lnet/minecraft/resource/ResourcePackProfile$PackFactory;Lnet/minecraft/resource/ResourcePackProfile$Metadata;Lnet/minecraft/resource/ResourcePackPosition;)V
      intermediary <init> Lnet/minecraft/class_3288;<init>(Lnet/minecraft/class_9224;Lnet/minecraft/class_3288$class_7680;Lnet/minecraft/class_3288$class_7679;Lnet/minecraft/class_9225;)V
      official <init> Latm;<init>(Lasp;Latm$c;Latm$a;Lasr;)V
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/resource/ResourcePackProfile;create(Lnet/minecraft/resource/ResourcePackInfo;Lnet/minecraft/resource/ResourcePackProfile$PackFactory;Lnet/minecraft/resource/ResourceType;Lnet/minecraft/resource/ResourcePackPosition;)Lnet/minecraft/resource/ResourcePackProfile;
      intermediary method_45275 Lnet/minecraft/class_3288;method_45275(Lnet/minecraft/class_9224;Lnet/minecraft/class_3288$class_7680;Lnet/minecraft/class_3264;Lnet/minecraft/class_9225;)Lnet/minecraft/class_3288;
      official a Latm;a(Lasp;Latm$c;Lass;Lasr;)Latm;
    • loadMetadata

      @Nullable public static @Nullable ResourcePackProfile.Metadata loadMetadata(ResourcePackInfo info, ResourcePackProfile.PackFactory packFactory, int currentPackFormat)
      Mappings:
      Namespace Name Mixin selector
      named loadMetadata Lnet/minecraft/resource/ResourcePackProfile;loadMetadata(Lnet/minecraft/resource/ResourcePackInfo;Lnet/minecraft/resource/ResourcePackProfile$PackFactory;I)Lnet/minecraft/resource/ResourcePackProfile$Metadata;
      intermediary method_45274 Lnet/minecraft/class_3288;method_45274(Lnet/minecraft/class_9224;Lnet/minecraft/class_3288$class_7680;I)Lnet/minecraft/class_3288$class_7679;
      official a Latm;a(Lasp;Latm$c;I)Latm$a;
    • getSupportedFormats

      private static Range<Integer> getSupportedFormats(String packId, PackResourceMetadata metadata)
      Mappings:
      Namespace Name Mixin selector
      named getSupportedFormats Lnet/minecraft/resource/ResourcePackProfile;getSupportedFormats(Ljava/lang/String;Lnet/minecraft/resource/metadata/PackResourceMetadata;)Lnet/minecraft/util/dynamic/Range;
      intermediary method_52440 Lnet/minecraft/class_3288;method_52440(Ljava/lang/String;Lnet/minecraft/class_3272;)Lnet/minecraft/class_6497;
      official a Latm;a(Ljava/lang/String;Latf;)Layg;
    • getInfo

      public ResourcePackInfo getInfo()
      Mappings:
      Namespace Name Mixin selector
      named getInfo Lnet/minecraft/resource/ResourcePackProfile;getInfo()Lnet/minecraft/resource/ResourcePackInfo;
      intermediary method_56933 Lnet/minecraft/class_3288;method_56933()Lnet/minecraft/class_9224;
      official a Latm;a()Lasp;
    • getDisplayName

      public Text getDisplayName()
      Mappings:
      Namespace Name Mixin selector
      named getDisplayName Lnet/minecraft/resource/ResourcePackProfile;getDisplayName()Lnet/minecraft/text/Text;
      intermediary method_14457 Lnet/minecraft/class_3288;method_14457()Lnet/minecraft/class_2561;
      official b Latm;b()Lwz;
    • getDescription

      public Text getDescription()
      Mappings:
      Namespace Name Mixin selector
      named getDescription Lnet/minecraft/resource/ResourcePackProfile;getDescription()Lnet/minecraft/text/Text;
      intermediary method_14459 Lnet/minecraft/class_3288;method_14459()Lnet/minecraft/class_2561;
      official c Latm;c()Lwz;
    • getInformationText

      public Text getInformationText(boolean enabled)
      Mappings:
      Namespace Name Mixin selector
      named getInformationText Lnet/minecraft/resource/ResourcePackProfile;getInformationText(Z)Lnet/minecraft/text/Text;
      intermediary method_14461 Lnet/minecraft/class_3288;method_14461(Z)Lnet/minecraft/class_2561;
      official a Latm;a(Z)Lwz;
    • getCompatibility

      public ResourcePackCompatibility getCompatibility()
      Mappings:
      Namespace Name Mixin selector
      named getCompatibility Lnet/minecraft/resource/ResourcePackProfile;getCompatibility()Lnet/minecraft/resource/ResourcePackCompatibility;
      intermediary method_14460 Lnet/minecraft/class_3288;method_14460()Lnet/minecraft/class_3281;
      official d Latm;d()Latn;
    • getRequestedFeatures

      public FeatureSet getRequestedFeatures()
      Mappings:
      Namespace Name Mixin selector
      named getRequestedFeatures Lnet/minecraft/resource/ResourcePackProfile;getRequestedFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
      intermediary method_45276 Lnet/minecraft/class_3288;method_45276()Lnet/minecraft/class_7699;
      official e Latm;e()Lcpl;
    • createResourcePack

      public ResourcePack createResourcePack()
      Mappings:
      Namespace Name Mixin selector
      named createResourcePack Lnet/minecraft/resource/ResourcePackProfile;createResourcePack()Lnet/minecraft/resource/ResourcePack;
      intermediary method_14458 Lnet/minecraft/class_3288;method_14458()Lnet/minecraft/class_3262;
      official f Latm;f()Lasq;
    • getId

      public String getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/resource/ResourcePackProfile;getId()Ljava/lang/String;
      intermediary method_14463 Lnet/minecraft/class_3288;method_14463()Ljava/lang/String;
      official g Latm;g()Ljava/lang/String;
    • getPosition

      public ResourcePackPosition getPosition()
      Mappings:
      Namespace Name Mixin selector
      named getPosition Lnet/minecraft/resource/ResourcePackProfile;getPosition()Lnet/minecraft/resource/ResourcePackPosition;
      intermediary method_56934 Lnet/minecraft/class_3288;method_56934()Lnet/minecraft/class_9225;
      official h Latm;h()Lasr;
    • isRequired

      public boolean isRequired()
      Mappings:
      Namespace Name Mixin selector
      named isRequired Lnet/minecraft/resource/ResourcePackProfile;isRequired()Z
      intermediary method_14464 Lnet/minecraft/class_3288;method_14464()Z
      official i Latm;i()Z
    • isPinned

      public boolean isPinned()
      Mappings:
      Namespace Name Mixin selector
      named isPinned Lnet/minecraft/resource/ResourcePackProfile;isPinned()Z
      intermediary method_14465 Lnet/minecraft/class_3288;method_14465()Z
      official j Latm;j()Z
    • getInitialPosition

      public ResourcePackProfile.InsertionPosition getInitialPosition()
      Mappings:
      Namespace Name Mixin selector
      named getInitialPosition Lnet/minecraft/resource/ResourcePackProfile;getInitialPosition()Lnet/minecraft/resource/ResourcePackProfile$InsertionPosition;
      intermediary method_14466 Lnet/minecraft/class_3288;method_14466()Lnet/minecraft/class_3288$class_3289;
      official k Latm;k()Latm$b;
    • getSource

      public ResourcePackSource getSource()
      Mappings:
      Namespace Name Mixin selector
      named getSource Lnet/minecraft/resource/ResourcePackProfile;getSource()Lnet/minecraft/resource/ResourcePackSource;
      intermediary method_29483 Lnet/minecraft/class_3288;method_29483()Lnet/minecraft/class_5352;
      official l Latm;l()Latq;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/resource/ResourcePackProfile;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_3288;equals(Ljava/lang/Object;)Z
      official equals Latm;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object