Package net.minecraftforge.debug.world
Class LoginPacketSplitTest.InMemoryResourcePack
java.lang.Object
net.minecraftforge.debug.world.LoginPacketSplitTest.InMemoryResourcePack
- All Implemented Interfaces:
AutoCloseable,PackResources,IForgePackResources
- Enclosing class:
- LoginPacketSplitTest
public static final class LoginPacketSplitTest.InMemoryResourcePack
extends Object
implements PackResources
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.PackResources
PackResources.ResourceOutput -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation,Supplier<byte[]>> private final StringFields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static byte[]fromJson(com.google.gson.JsonElement json) <T> TgetMetadataSection(MetadataSectionSerializer<T> section) getNamespaces(PackType type) @Nullable IoSupplier<InputStream>getResource(PackType type, ResourceLocation loc) @Nullable IoSupplier<InputStream>getRootResource(String... loc) voidlistResources(PackType type, String namespace, String startingPath, PackResources.ResourceOutput out) private <T> @Nullable IoSupplier<InputStream>openResource(Map<T, Supplier<byte[]>> map, T key) packId()voidputData(ResourceLocation path, com.google.gson.JsonObject json) voidputData(ResourceLocation path, Supplier<byte[]> data) voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgePackResources
getChildren, isHiddenMethods inherited from interface net.minecraft.server.packs.PackResources
isBuiltin
-
Field Details
-
data
-
root
-
id
-
-
Constructor Details
-
InMemoryResourcePack
-
-
Method Details
-
getRootResource
- Specified by:
getRootResourcein interfacePackResources
-
getResource
- Specified by:
getResourcein interfacePackResources
-
openResource
@Nullable private <T> @Nullable IoSupplier<InputStream> openResource(Map<T, Supplier<byte[]>> map, @NotNull T key) -
listResources
public void listResources(PackType type, String namespace, String startingPath, PackResources.ResourceOutput out) - Specified by:
listResourcesin interfacePackResources
-
getNamespaces
- Specified by:
getNamespacesin interfacePackResources
-
getMetadataSection
- Specified by:
getMetadataSectionin interfacePackResources- Throws:
IOException
-
packId
- Specified by:
packIdin interfacePackResources
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePackResources
-
putRoot
-
putRoot
-
putData
-
putData
-
fromJson
public static byte[] fromJson(com.google.gson.JsonElement json)
-