@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 ResourcePack
IOException
public boolean contains(ResourceType type, Identifier id)
contains
in interface ResourcePack
public InputStream open(ResourceType type, Identifier id) throws IOException
open
in interface ResourcePack
IOException
@Nullable public static InputStream openCroppedStream(InputStream inputStream, InputStream inputStream2, int int2, int int3, int int4, int int5, int int6) throws IOException
IOException
public static InputStream method_24199(InputStream inputStream) throws IOException
IOException
public static InputStream cropLeftChestTexture(InputStream inputStream) throws IOException
IOException
public static InputStream cropRightChestTexture(InputStream inputStream) throws IOException
IOException
public static InputStream cropSingleChestTexture(InputStream inputStream) throws IOException
IOException
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
findResources
in interface ResourcePack
public Set<String> getNamespaces(ResourceType type)
getNamespaces
in interface ResourcePack
@Nullable public <T> T parseMetadata(ResourceMetadataReader<T> metaReader)
parseMetadata
in interface ResourcePack
public String getName()
getName
in interface ResourcePack
public void close()
close
in interface AutoCloseable
close
in interface ResourcePack
private 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)