@Environment(value=CLIENT) public class Format4ResourcePack extends Object implements ResourcePack
| Modifier and Type | Field and Description |
|---|---|
private static Set<String> |
BANNER_PATTERN_TEXTURES |
private static List<String> |
BANNER_PATTERN_TYPES |
static Identifier |
IRON_GOLEM_TEXTURE |
private static Map<String,com.mojang.datafixers.util.Pair<ChestType,Identifier>> |
NEW_TO_OLD_CHEST_TEXTURES |
static Identifier |
OLD_BANNER_BASE_TEXTURE |
static Identifier |
OLD_SHIELD_BASE_TEXTURE |
private ResourcePack |
parent |
private static Set<String> |
SHIELD_PATTERN_TEXTURES |
| Constructor and Description |
|---|
Format4ResourcePack(ResourcePack parent) |
private static final Map<String,com.mojang.datafixers.util.Pair<ChestType,Identifier>> NEW_TO_OLD_CHEST_TEXTURES
public static final Identifier OLD_SHIELD_BASE_TEXTURE
public static final Identifier OLD_BANNER_BASE_TEXTURE
public static final Identifier IRON_GOLEM_TEXTURE
private final ResourcePack parent
public Format4ResourcePack(ResourcePack parent)
public InputStream openRoot(String fileName) throws IOException
openRoot in interface ResourcePackIOExceptionpublic boolean contains(ResourceType type, Identifier id)
contains in interface ResourcePackpublic InputStream open(ResourceType type, Identifier id) throws IOException
open in interface ResourcePackIOException@Nullable public static InputStream openCroppedStream(InputStream inputStream, InputStream inputStream2, int int2, int int3, int int4, int int5, int int6) throws IOException
IOExceptionpublic static InputStream method_24199(InputStream inputStream) throws IOException
IOExceptionpublic static InputStream cropLeftChestTexture(InputStream inputStream) throws IOException
IOExceptionpublic static InputStream cropRightChestTexture(InputStream inputStream) throws IOException
IOExceptionpublic static InputStream cropSingleChestTexture(InputStream inputStream) throws IOException
IOExceptionpublic Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
findResources in interface ResourcePackpublic Set<String> getNamespaces(ResourceType type)
getNamespaces in interface ResourcePack@Nullable public <T> T parseMetadata(ResourceMetadataReader<T> metaReader)
parseMetadata in interface ResourcePackpublic String getName()
getName in interface ResourcePackpublic void close()
close in interface AutoCloseableclose in interface ResourcePackprivate static void loadBytes(NativeImage source, NativeImage target, int int2, int int3, int int4, int int5, int int6, int int7, int int8, boolean bool, boolean bool2)