Class ListResourcePack
- java.lang.Object
-
- net.minecraft.modding.api.game.client.resources.ResourcePack
-
- net.minecraft.modding.api.game.client.resources.MultiResourcePack
-
- net.minecraft.modding.api.game.client.resources.ListResourcePack
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ListResourcePack extends MultiResourcePack
-
-
Constructor Summary
Constructors Constructor Description ListResourcePack(java.lang.String name, java.util.List<ResourcePack> packs)
ListResourcePack(java.lang.String name, ResourcePack... packs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourcePack
createBest(java.lang.String maybeName, java.util.List<ResourcePack> packs)
static ResourcePack
createBest(java.lang.String maybeName, ResourcePack... packs)
static java.util.List<ResourcePack>
flatten(java.util.List<ResourcePack> packs)
java.lang.String
getName()
java.util.List<ResourcePack>
getPacks()
protected java.util.stream.Stream<ResourcePack>
getSubPacks()
-
Methods inherited from class net.minecraft.modding.api.game.client.resources.MultiResourcePack
findResources, getResource, getResources, getResources
-
Methods inherited from class net.minecraft.modding.api.game.client.resources.ResourcePack
close, getDescription, getThumbnail, isLegacyTexturePack
-
-
-
-
Constructor Detail
-
ListResourcePack
public ListResourcePack(java.lang.String name, java.util.List<ResourcePack> packs)
-
ListResourcePack
public ListResourcePack(java.lang.String name, ResourcePack... packs)
-
-
Method Detail
-
createBest
public static ResourcePack createBest(java.lang.String maybeName, java.util.List<ResourcePack> packs)
-
createBest
public static ResourcePack createBest(java.lang.String maybeName, ResourcePack... packs)
-
getName
public java.lang.String getName()
- Specified by:
getName
in classResourcePack
-
getPacks
public java.util.List<ResourcePack> getPacks()
-
getSubPacks
protected java.util.stream.Stream<ResourcePack> getSubPacks()
- Specified by:
getSubPacks
in classMultiResourcePack
-
flatten
public static java.util.List<ResourcePack> flatten(java.util.List<ResourcePack> packs)
-
-