Package net.minecraft.resources
Class ResourcePackList
- java.lang.Object
-
- net.minecraft.resources.ResourcePackList
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ResourcePackList extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,ResourcePackInfo>
available
private ResourcePackInfo.IFactory
constructor
private java.util.List<ResourcePackInfo>
selected
private java.util.Set<IPackFinder>
sources
-
Constructor Summary
Constructors Constructor Description ResourcePackList(IPackFinder... p_i241886_1_)
ResourcePackList(ResourcePackInfo.IFactory p_i231423_1_, IPackFinder... p_i231423_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPackFinder(IPackFinder packFinder)
void
close()
private java.util.Map<java.lang.String,ResourcePackInfo>
discoverAvailable()
java.util.Collection<java.lang.String>
getAvailableIds()
java.util.Collection<ResourcePackInfo>
getAvailablePacks()
private java.util.stream.Stream<ResourcePackInfo>
getAvailablePacks(java.util.Collection<java.lang.String> p_232620_1_)
ResourcePackInfo
getPack(java.lang.String p_198981_1_)
java.util.Collection<java.lang.String>
getSelectedIds()
java.util.Collection<ResourcePackInfo>
getSelectedPacks()
boolean
isAvailable(java.lang.String p_232617_1_)
java.util.List<IResourcePack>
openAllSelected()
private java.util.List<ResourcePackInfo>
rebuildSelected(java.util.Collection<java.lang.String> p_232618_1_)
void
reload()
void
setSelected(java.util.Collection<java.lang.String> p_198985_1_)
-
-
-
Field Detail
-
sources
private final java.util.Set<IPackFinder> sources
-
available
private java.util.Map<java.lang.String,ResourcePackInfo> available
-
selected
private java.util.List<ResourcePackInfo> selected
-
constructor
private final ResourcePackInfo.IFactory constructor
-
-
Constructor Detail
-
ResourcePackList
public ResourcePackList(ResourcePackInfo.IFactory p_i231423_1_, IPackFinder... p_i231423_2_)
-
ResourcePackList
public ResourcePackList(IPackFinder... p_i241886_1_)
-
-
Method Detail
-
reload
public void reload()
-
discoverAvailable
private java.util.Map<java.lang.String,ResourcePackInfo> discoverAvailable()
-
setSelected
public void setSelected(java.util.Collection<java.lang.String> p_198985_1_)
-
rebuildSelected
private java.util.List<ResourcePackInfo> rebuildSelected(java.util.Collection<java.lang.String> p_232618_1_)
-
getAvailablePacks
private java.util.stream.Stream<ResourcePackInfo> getAvailablePacks(java.util.Collection<java.lang.String> p_232620_1_)
-
getAvailableIds
public java.util.Collection<java.lang.String> getAvailableIds()
-
getAvailablePacks
public java.util.Collection<ResourcePackInfo> getAvailablePacks()
-
getSelectedIds
public java.util.Collection<java.lang.String> getSelectedIds()
-
getSelectedPacks
public java.util.Collection<ResourcePackInfo> getSelectedPacks()
-
getPack
@Nullable public ResourcePackInfo getPack(java.lang.String p_198981_1_)
-
addPackFinder
public void addPackFinder(IPackFinder packFinder)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
isAvailable
public boolean isAvailable(java.lang.String p_232617_1_)
-
openAllSelected
public java.util.List<IResourcePack> openAllSelected()
-
-