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 avd
  • 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 Lavd;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 Lavd;b:Lauf;
    • 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 Lavd;c:Lavd$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 Lavd;d:Lavd$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 Lavd;e:Lauh;
  • 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> Lavd;<init>(Lauf;Lavd$c;Lavd$a;Lauh;)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 Lavd;a(Lauf;Lavd$c;Laui;Lauh;)Lavd;
    • 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 Lavd;a(Lauf;Lavd$c;I)Lavd$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 Lavd;a(Ljava/lang/String;Lauv;)Lazw;
    • 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 Lavd;a()Lauf;
    • 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 Lavd;b()Lxv;
    • 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 Lavd;c()Lxv;
    • 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 Lavd;a(Z)Lxv;
    • 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 Lavd;d()Lave;
    • 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 Lavd;e()Lcss;
    • 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 Lavd;f()Laug;
    • 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 Lavd;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 Lavd;h()Lauh;
    • 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 Lavd;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 Lavd;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 Lavd;k()Lavd$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 Lavd;l()Lavh;
    • 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 Lavd;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object