Uses of Class
net.minecraft.resource.ResourcePackProfile
Package
Description
Provides resources to Minecraft, including resource access, provision, and reloading.
-
Uses of ResourcePackProfile in net.minecraft.client.gui.screen.pack
Modifier and TypeFieldDescriptionprivate final ResourcePackProfile
ResourcePackOrganizer.AbstractPack.profile
Modifier and TypeFieldDescription(package private) final List<ResourcePackProfile>
ResourcePackOrganizer.disabledPacks
(package private) final List<ResourcePackProfile>
ResourcePackOrganizer.enabledPacks
(package private) final Collection<ResourcePackProfile>
ExperimentalWarningScreen.enabledProfiles
(package private) final Function<ResourcePackProfile,
Identifier> ResourcePackOrganizer.iconIdSupplier
Modifier and TypeMethodDescriptionprotected abstract List<ResourcePackProfile>
ResourcePackOrganizer.AbstractPack.getCurrentList()
protected List<ResourcePackProfile>
ResourcePackOrganizer.DisabledPack.getCurrentList()
protected List<ResourcePackProfile>
ResourcePackOrganizer.EnabledPack.getCurrentList()
protected abstract List<ResourcePackProfile>
ResourcePackOrganizer.AbstractPack.getOppositeList()
protected List<ResourcePackProfile>
ResourcePackOrganizer.DisabledPack.getOppositeList()
protected List<ResourcePackProfile>
ResourcePackOrganizer.EnabledPack.getOppositeList()
Modifier and TypeMethodDescriptionprivate Identifier
PackScreen.getPackIconTexture
(ResourcePackProfile resourcePackProfile) private Identifier
PackScreen.loadPackIcon
(TextureManager textureManager, ResourcePackProfile resourcePackProfile) ModifierConstructorDescriptionAbstractPack
(ResourcePackProfile profile) DisabledPack
(ResourcePackProfile profile) EnabledPack
(ResourcePackProfile profile) ModifierConstructorDescriptionExperimentalWarningScreen
(Collection<ResourcePackProfile> enabledProfiles, BooleanConsumer callback) PackListWidget
(MinecraftClient client, Collection<ResourcePackProfile> enabledProfiles) ResourcePackOrganizer
(Runnable updateCallback, Function<ResourcePackProfile, Identifier> iconIdSupplier, ResourcePackManager resourcePackManager, Consumer<ResourcePackManager> applier) -
Uses of ResourcePackProfile in net.minecraft.client.gui.screen.world
Modifier and TypeFieldDescriptionprivate final Object2BooleanMap<ResourcePackProfile>
ExperimentsScreen.experiments
Modifier and TypeMethodDescriptionprivate static Text
ExperimentsScreen.getDataPackName
(ResourcePackProfile packProfile) -
Uses of ResourcePackProfile in net.minecraft.client.resource
Modifier and TypeFieldDescriptionprivate @Nullable ResourcePackProfile
ServerResourcePackProvider.serverContainer
Modifier and TypeMethodDescriptionprotected @Nullable ResourcePackProfile
DefaultClientResourcePackProvider.create
(String name, ResourcePackProfile.PackFactory packFactory, Text displayName) protected @Nullable ResourcePackProfile
DefaultClientResourcePackProvider.createDefault
(ResourcePack pack) Modifier and TypeMethodDescriptionprotected void
DefaultClientResourcePackProvider.forEachProfile
(BiConsumer<String, Function<String, ResourcePackProfile>> consumer) void
ServerResourcePackProvider.register
(Consumer<ResourcePackProfile> profileAdder) Register resource pack profiles created with thefactory
to theprofileAdder
. -
Uses of ResourcePackProfile in net.minecraft.resource
Modifier and TypeFieldDescriptionprivate List<ResourcePackProfile>
ResourcePackManager.enabled
private Map<String,
ResourcePackProfile> ResourcePackManager.profiles
Modifier and TypeMethodDescriptionstatic @Nullable ResourcePackProfile
ResourcePackProfile.create
(String name, Text displayName, boolean alwaysEnabled, ResourcePackProfile.PackFactory packFactory, ResourceType type, ResourcePackProfile.InsertionPosition position, ResourcePackSource source) protected @Nullable ResourcePackProfile
VanillaDataPackProvider.create
(String name, ResourcePackProfile.PackFactory packFactory, Text displayName) protected abstract @Nullable ResourcePackProfile
VanillaResourcePackProvider.create
(String name, ResourcePackProfile.PackFactory packFactory, Text displayName) protected @Nullable ResourcePackProfile
VanillaDataPackProvider.createDefault
(ResourcePack pack) protected abstract @Nullable ResourcePackProfile
VanillaResourcePackProvider.createDefault
(ResourcePack pack) @Nullable ResourcePackProfile
ResourcePackManager.getProfile
(String name) static ResourcePackProfile
ResourcePackProfile.of
(String name, Text displayName, boolean alwaysEnabled, ResourcePackProfile.PackFactory packFactory, ResourcePackProfile.Metadata metadata, ResourcePackProfile.InsertionPosition position, boolean pinned, ResourcePackSource source) Creates a resource pack profile from the given parameters.Modifier and TypeMethodDescriptionprivate List<ResourcePackProfile>
ResourcePackManager.buildEnabledProfiles
(Collection<String> enabledNames) ResourcePackManager.getEnabledProfiles()
ResourcePackManager.getProfiles()
private Map<String,
ResourcePackProfile> ResourcePackManager.providePackProfiles()
private Stream<ResourcePackProfile>
ResourcePackManager.streamProfilesByName
(Collection<String> names) Modifier and TypeMethodDescriptionprotected void
VanillaResourcePackProvider.forEachProfile
(@Nullable Path namespacedPath, BiConsumer<String, Function<String, ResourcePackProfile>> consumer) protected void
VanillaResourcePackProvider.forEachProfile
(BiConsumer<String, Function<String, ResourcePackProfile>> consumer) private void
VanillaResourcePackProvider.forEachProfile
(Consumer<ResourcePackProfile> consumer) <T> int
ResourcePackProfile.InsertionPosition.insert
(List<T> items, T item, Function<T, ResourcePackProfile> profileGetter, boolean listInverted) void
FileResourcePackProvider.register
(Consumer<ResourcePackProfile> profileAdder) Register resource pack profiles created with thefactory
to theprofileAdder
.void
ResourcePackProvider.register
(Consumer<ResourcePackProfile> profileAdder) Register resource pack profiles created with thefactory
to theprofileAdder
.void
VanillaResourcePackProvider.register
(Consumer<ResourcePackProfile> profileAdder) Register resource pack profiles created with thefactory
to theprofileAdder
. -
Uses of ResourcePackProfile in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static ResourcePackProfile
DatapackCommand.getPackContainer
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, boolean enable) Modifier and TypeMethodDescriptionvoid
DatapackCommand.PackAdder.apply
(List<ResourcePackProfile> profiles, ResourcePackProfile profile) private static int
DatapackCommand.executeDisable
(ServerCommandSource source, ResourcePackProfile container) private static int
DatapackCommand.executeEnable
(ServerCommandSource source, ResourcePackProfile container, DatapackCommand.PackAdder packAdder) Modifier and TypeMethodDescriptionvoid
DatapackCommand.PackAdder.apply
(List<ResourcePackProfile> profiles, ResourcePackProfile profile)