Class PackRepository
java.lang.Object
net.minecraft.server.packs.repository.PackRepository
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Pack.PackConstructor
private final Set<RepositorySource>
-
Constructor Summary
ConstructorDescriptionPackRepository
(PackType p_143890_, RepositorySource... p_143891_) PackRepository
(Pack.PackConstructor p_10502_, RepositorySource... p_10503_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPackFinder
(RepositorySource packFinder) void
close()
getAvailablePacks
(Collection<String> p_10521_) boolean
isAvailable
(String p_10516_) rebuildSelected
(Collection<String> p_10518_) void
reload()
void
setSelected
(Collection<String> p_10510_)
-
Field Details
-
sources
-
available
-
selected
-
constructor
-
-
Constructor Details
-
PackRepository
-
PackRepository
-
-
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
-