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 ate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static final record
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourcePackInfo
private static final Logger
private final ResourcePackProfile.Metadata
private final ResourcePackProfile.PackFactory
private final ResourcePackPosition
-
Constructor Summary
ConstructorDescriptionResourcePackProfile
(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
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
Late;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
Late;b:Lash;
-
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
Late;c:Late$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
Late;d:Late$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
Late;e:Lasj;
-
-
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>
Late;<init>(Lash;Late$c;Late$a;Lasj;)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
Late;a(Lash;Late$c;Lask;Lasj;)Late;
-
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
Late;a(Lash;Late$c;I)Late$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
Late;a(Ljava/lang/String;Lasx;)Laxy;
-
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
Late;a()Lash;
-
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
Late;b()Lwu;
-
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
Late;c()Lwu;
-
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
Late;a(Z)Lwu;
-
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
Late;d()Latf;
-
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
Late;e()Lcoz;
-
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
Late;f()Lasi;
-
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
Late;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
Late;h()Lasj;
-
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
Late;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
Late;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
Late;k()Late$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
Late;l()Lati;
-
equals
-
hashCode
public int hashCode()
-