net.minecraft.resource

public interface ResourceFactory

net.minecraft.server.packs.resources.ResourceProvider
net.minecraft.class_5912
net.minecraft.resource.ResourceFactory

Field summary

Modifier and TypeField
ResourceFactory
EMPTY
field_49043
MISSING

Method summary

Modifier and TypeMethod
Optional<Resource>
getResource(Identifier location)
method_14486(class_2960 arg0)
getResource(Identifier id)
default Resource
getResourceOrThrow(Identifier location)
method_1_248(class_2960 arg0)
getResourceOrThrow(Identifier id)
default InputStream
open(Identifier location)
method_1_249(class_2960 arg0)
getInputStreamOrThrow(Identifier id)
default BufferedReader
openAsReader(Identifier location)
method_1_250(class_2960 arg0)
getReaderOrThrow(Identifier id)
static ResourceFactory
fromMap(Map<Identifier, Resource> map)
method_1_247(Map<class_2960, class_3298> arg0)
fromMap(Map<Identifier, Resource> map)
private static Optional
lambda$fromMap$0(Map arg0, Identifier arg1)
method_45307(Map arg0, class_2960 arg1)
method_45307(Map arg0, Identifier id)
private static FileNotFoundException
lambda$getResourceOrThrow$0(Identifier arg0)
method_43043(class_2960 arg0)
method_43043(Identifier arg0)
private static Optional
lambda$static$0(Identifier arg0)
method_56937(class_2960 arg0)
method_56937(Identifier id)