Package net.minecraft.resource
Class ResourcePackProfile
java.lang.Object
net.minecraft.resource.ResourcePackProfile
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 ResourcePackProvider
s.
Closing the profile doesn't have any effect.
- Mappings:
Namespace Name named net/minecraft/resource/ResourcePackProfile
intermediary net/minecraft/class_3288
official atx
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static final record
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourcePackInfo
private static final Logger
private final ResourcePackProfile.Metadata
private final ResourcePackProfile.PackFactory
private final ResourcePackPosition
-
Constructor Summary
ConstructorsConstructorDescriptionResourcePackProfile
(ResourcePackInfo info, ResourcePackProfile.PackFactory packFactory, ResourcePackProfile.Metadata metaData, ResourcePackPosition position) -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ResourcePackProfile
create
(ResourcePackInfo info, ResourcePackProfile.PackFactory packFactory, ResourceType type, ResourcePackPosition position) boolean
getId()
getInfo()
getInformationText
(boolean enabled) getSupportedFormats
(String packId, PackResourceMetadata metadata) int
hashCode()
boolean
isPinned()
boolean
static @Nullable ResourcePackProfile.Metadata
loadMetadata
(ResourcePackInfo info, ResourcePackProfile.PackFactory packFactory, int currentPackFormat)
-
Field Details
-
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
Latx;a:Lorg/slf4j/Logger;
-
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
Latx;b:Lata;
-
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
Latx;c:Latx$c;
-
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
Latx;d:Latx$a;
-
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
Latx;e:Latc;
-
-
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>
Latx;<init>(Lata;Latx$c;Latx$a;Latc;)V
-
-
Method Details
-
create
@Nullable public static @Nullable ResourcePackProfile create(ResourcePackInfo info, ResourcePackProfile.PackFactory packFactory, ResourceType type, ResourcePackPosition position) - 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
Latx;a(Lata;Latx$c;Latd;Latc;)Latx;
-
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
Latx;a(Lata;Latx$c;I)Latx$a;
-
getSupportedFormats
- 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
Latx;a(Ljava/lang/String;Latq;)Layr;
-
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
Latx;a()Lata;
-
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
Latx;b()Lxp;
-
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
Latx;c()Lxp;
-
getInformationText
- 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
Latx;a(Z)Lxp;
-
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
Latx;d()Laty;
-
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
Latx;e()Lcpm;
-
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
Latx;f()Latb;
-
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
Latx;g()Ljava/lang/String;
-
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
Latx;h()Latc;
-
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
Latx;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
Latx;j()Z
-
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
Latx;k()Latx$b;
-
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
Latx;l()Laub;
-
equals
-
hashCode
public int hashCode()
-