Package net.minecraft.client.gui.screen
Class PackLoadingManager
- java.lang.Object
-
- net.minecraft.client.gui.screen.PackLoadingManager
-
public class PackLoadingManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
PackLoadingManager.AbstractPack
(package private) class
PackLoadingManager.DisabledPack
(package private) class
PackLoadingManager.EnabledPack
static interface
PackLoadingManager.IPack
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<ResourcePackInfo,ResourceLocation>
iconGetter
private java.lang.Runnable
onListChanged
private java.util.function.Consumer<ResourcePackList>
output
private ResourcePackList
repository
private java.util.List<ResourcePackInfo>
selected
private java.util.List<ResourcePackInfo>
unselected
-
Constructor Summary
Constructors Constructor Description PackLoadingManager(java.lang.Runnable p_i242059_1_, java.util.function.Function<ResourcePackInfo,ResourceLocation> p_i242059_2_, ResourcePackList p_i242059_3_, java.util.function.Consumer<ResourcePackList> p_i242059_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit()
void
findNewPacks()
java.util.stream.Stream<PackLoadingManager.IPack>
getSelected()
java.util.stream.Stream<PackLoadingManager.IPack>
getUnselected()
-
-
-
Field Detail
-
repository
private final ResourcePackList repository
-
selected
private final java.util.List<ResourcePackInfo> selected
-
unselected
private final java.util.List<ResourcePackInfo> unselected
-
iconGetter
private final java.util.function.Function<ResourcePackInfo,ResourceLocation> iconGetter
-
onListChanged
private final java.lang.Runnable onListChanged
-
output
private final java.util.function.Consumer<ResourcePackList> output
-
-
Constructor Detail
-
PackLoadingManager
public PackLoadingManager(java.lang.Runnable p_i242059_1_, java.util.function.Function<ResourcePackInfo,ResourceLocation> p_i242059_2_, ResourcePackList p_i242059_3_, java.util.function.Consumer<ResourcePackList> p_i242059_4_)
-
-
Method Detail
-
getUnselected
public java.util.stream.Stream<PackLoadingManager.IPack> getUnselected()
-
getSelected
public java.util.stream.Stream<PackLoadingManager.IPack> getSelected()
-
commit
public void commit()
-
findNewPacks
public void findNewPacks()
-
-