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
official asz
intermediary net/minecraft/class_3288
named net/minecraft/resource/ResourcePackProfile
  • Field Details

    • LOGGER

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

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

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

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

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

    • ResourcePackProfile

      public ResourcePackProfile(ResourcePackInfo info, ResourcePackProfile.PackFactory packFactory, ResourcePackProfile.Metadata metaData, ResourcePackPosition position)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lasz;<init>(Lasc;Lasz$c;Lasz$a;Lase;)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
      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
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lasz;a(Lasc;Lasz$c;Lasf;Lase;)Lasz;
      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;
      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;
    • loadMetadata

      @Nullable public static @Nullable ResourcePackProfile.Metadata loadMetadata(ResourcePackInfo info, ResourcePackProfile.PackFactory packFactory, int currentPackFormat)
      Mappings:
      Namespace Name Mixin selector
      official a Lasz;a(Lasc;Lasz$c;I)Lasz$a;
      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;
      named loadMetadata Lnet/minecraft/resource/ResourcePackProfile;loadMetadata(Lnet/minecraft/resource/ResourcePackInfo;Lnet/minecraft/resource/ResourcePackProfile$PackFactory;I)Lnet/minecraft/resource/ResourcePackProfile$Metadata;
    • getSupportedFormats

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object