net.minecraft.resource

public class ResourcePackManager

net.minecraft.server.packs.repository.PackRepository
net.minecraft.class_3283
net.minecraft.resource.ResourcePackManager

Field summary

Modifier and TypeField
private final Set<ResourcePackProvider>
sources
field_14227
providers
private Map<String, ResourcePackProfile>
available
field_14226
profiles
private List<ResourcePackProfile>
selected
field_14225
enabled

Constructor summary

ModifierConstructor
public (ResourcePackProvider... providers)

Method summary

Modifier and TypeMethod
public static String
displayPackList(Collection<Pack> packs)
method_59809(Collection<class_3288> arg0)
listPacks(Collection<ResourcePackProfile> profiles)
public void
reload()
method_14445()
scanPacks()
private Map<String, ResourcePackProfile>
discoverAvailable()
method_29212()
providePackProfiles()
public boolean
isAbleToClearAnyPack()
method_63566()
hasOptionalProfilesEnabled()
public void
setSelected(Collection<String> packs)
method_14447(Collection<String> arg0)
setEnabledProfiles(Collection<String> enabled)
public boolean
addPack(String packId)
method_49427(String arg0)
enable(String profile)
public boolean
removePack(String packId)
method_49428(String arg0)
disable(String profile)
private List<ResourcePackProfile>
rebuildSelected(Collection<String> selectedNames)
method_29208(Collection<String> arg0)
buildEnabledProfiles(Collection<String> enabledNames)
private Stream<ResourcePackProfile>
getAvailablePacks(Collection<String> ids)
method_29209(Collection<String> arg0)
streamProfilesById(Collection<String> ids)
public Collection<String>
getAvailableIds()
method_29206()
getIds()
public Collection<ResourcePackProfile>
getAvailablePacks()
method_14441()
getProfiles()
public Collection<String>
getSelectedIds()
method_29210()
getEnabledIds()
public FeatureSet
getRequestedFeatureFlags()
method_45278()
getRequestedFeatures()
public Collection<ResourcePackProfile>
getSelectedPacks()
method_14444()
getEnabledProfiles()
public ResourcePackProfile
getPack(String id)
method_14449(String arg0)
getProfile(String id)
public boolean
isAvailable(String id)
method_29207(String arg0)
hasProfile(String id)
public List<ResourcePack>
openAllSelected()
method_29211()
createResourcePacks()
private static void
lambda$discoverAvailable$1(Map arg0, Pack arg1)
method_29484(Map arg0, class_3288 arg1)
method_29484(Map arg0, ResourcePackProfile profile)
private static String
lambda$displayPackList$0(Pack arg0)
method_59808(class_3288 arg0)
method_59808(ResourcePackProfile profile)