@Environment(value=CLIENT) public class ResourcePackOrganizer extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
ResourcePackOrganizer.AbstractPack |
(package private) class |
ResourcePackOrganizer.DisabledPack |
(package private) class |
ResourcePackOrganizer.EnabledPack |
static interface |
ResourcePackOrganizer.Pack |
Modifier and Type | Field and 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 and Description |
---|
ResourcePackOrganizer(Runnable updateCallback,
Function<ResourcePackProfile,Identifier> function,
ResourcePackManager resourcePackManager,
Consumer<ResourcePackManager> consumer) |
Modifier and Type | Method and Description |
---|---|
void |
apply() |
Stream<ResourcePackOrganizer.Pack> |
getDisabledPacks() |
Stream<ResourcePackOrganizer.Pack> |
getEnabledPacks() |
void |
refresh() |
private final ResourcePackManager resourcePackManager
private final List<ResourcePackProfile> enabledPacks
private final List<ResourcePackProfile> disabledPacks
private final Function<ResourcePackProfile,Identifier> field_25785
private final Runnable updateCallback
private final Consumer<ResourcePackManager> applier
public ResourcePackOrganizer(Runnable updateCallback, Function<ResourcePackProfile,Identifier> function, ResourcePackManager resourcePackManager, Consumer<ResourcePackManager> consumer)
public Stream<ResourcePackOrganizer.Pack> getDisabledPacks()
public Stream<ResourcePackOrganizer.Pack> getEnabledPacks()
public void apply()
public void refresh()