Class ResourcePackOrganizer
java.lang.Object
net.minecraft.client.gui.screen.pack.ResourcePackOrganizer
@Environment(CLIENT) public class ResourcePackOrganizer extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ResourcePackOrganizer.AbstractPack
(package private) class
ResourcePackOrganizer.DisabledPack
(package private) class
ResourcePackOrganizer.EnabledPack
static interface
ResourcePackOrganizer.Pack
-
Field Summary
Fields Modifier and Type Field Description private Consumer<ResourcePackManager>
applier
private List<ResourcePackProfile>
disabledPacks
private List<ResourcePackProfile>
enabledPacks
private Function<ResourcePackProfile,Identifier>
field_25785
private ResourcePackManager
resourcePackManager
private Runnable
updateCallback
-
Constructor Summary
Constructors Constructor Description ResourcePackOrganizer(Runnable updateCallback, Function<ResourcePackProfile,Identifier> function, ResourcePackManager resourcePackManager, Consumer<ResourcePackManager> consumer)
-
Method Summary
Modifier and Type Method Description void
apply()
Stream<ResourcePackOrganizer.Pack>
getDisabledPacks()
Stream<ResourcePackOrganizer.Pack>
getEnabledPacks()
void
refresh()
-
Field Details
-
resourcePackManager
-
enabledPacks
-
disabledPacks
-
field_25785
-
updateCallback
-
applier
-
-
Constructor Details
-
ResourcePackOrganizer
public ResourcePackOrganizer(Runnable updateCallback, Function<ResourcePackProfile,Identifier> function, ResourcePackManager resourcePackManager, Consumer<ResourcePackManager> consumer)
-
-
Method Details
-
getDisabledPacks
-
getEnabledPacks
-
apply
public void apply() -
refresh
public void refresh()
-