Package net.minecraft.resources
Class ResourcePackList
java.lang.Object
net.minecraft.resources.ResourcePackList
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<String,
ResourcePackInfo> private final ResourcePackInfo.IFactory
private List<ResourcePackInfo>
private final Set<IPackFinder>
-
Constructor Summary
ConstructorDescriptionResourcePackList
(IPackFinder... p_i241886_1_) ResourcePackList
(ResourcePackInfo.IFactory p_i231423_1_, IPackFinder... p_i231423_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPackFinder
(IPackFinder packFinder) void
close()
private Map<String,
ResourcePackInfo> private Stream<ResourcePackInfo>
getAvailablePacks
(Collection<String> p_232620_1_) boolean
isAvailable
(String p_232617_1_) private List<ResourcePackInfo>
rebuildSelected
(Collection<String> p_232618_1_) void
reload()
void
setSelected
(Collection<String> p_198985_1_)
-
Field Details
-
sources
-
available
-
selected
-
constructor
-
-
Constructor Details
-
ResourcePackList
-
ResourcePackList
-
-
Method Details
-
reload
public void reload() -
discoverAvailable
-
setSelected
-
rebuildSelected
-
getAvailablePacks
-
getAvailableIds
-
getAvailablePacks
-
getSelectedIds
-
getSelectedPacks
-
getPack
-
addPackFinder
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
isAvailable
-
openAllSelected
-