net.minecraft.registry

public record RegistryLoader$Result<T>

net.minecraft.resources.RegistryLoadTask$PendingRegistration
net.minecraft.class_1_102$class_1_21
net.minecraft.registry.RegistryLoader$Result

Field summary

Modifier and TypeField
private final RegistryKey<T>
key
comp_1_12
key
private final com.mojang.datafixers.util.Either<T, Exception>
value
comp_1_14
value
private final RegistryEntryInfo
registrationInfo
comp_1_13
registrationInfo

Constructor summary

ModifierConstructor
protected (RegistryKey<T> key, com.mojang.datafixers.util.Either<T, Exception> value, RegistryEntryInfo registrationInfo)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.datafixers.util.Either<T, Exception>
loadFromResource(com.mojang.serialization.Decoder<T> elementDecoder, RegistryOps<com.google.gson.JsonElement> ops, ResourceKey<T> elementKey, Resource thunk)
method_1_448(com.mojang.serialization.Decoder<T> arg0, class_6903<com.google.gson.JsonElement> arg1, class_5321<T> arg2, class_3298 arg3)
parseFromPack(com.mojang.serialization.Decoder<T> decoder, RegistryOps<com.google.gson.JsonElement> jsonOps, RegistryKey<T> key, Resource resource)
public static <T> com.mojang.datafixers.util.Either<T, Exception>
findAndLoadFromResource(com.mojang.serialization.Decoder<T> elementDecoder, RegistryOps<com.google.gson.JsonElement> ops, ResourceKey<T> elementKey, FileToIdConverter converter, ResourceProvider resourceProvider)
method_1_444(com.mojang.serialization.Decoder<T> arg0, class_6903<com.google.gson.JsonElement> arg1, class_5321<T> arg2, class_7654 arg3, class_5912 arg4)
parseFromPack(com.mojang.serialization.Decoder<T> decoder, RegistryOps<com.google.gson.JsonElement> jsonOps, RegistryKey<T> key, ResourceFinder resourceFinder, ResourceFactory resourceFactory)
public static <T> com.mojang.datafixers.util.Either<T, Exception>
loadFromNetwork(com.mojang.serialization.Decoder<T> elementDecoder, RegistryOps<Tag> ops, ResourceKey<T> elementKey, Tag contents)
method_1_447(com.mojang.serialization.Decoder<T> arg0, class_6903<class_2520> arg1, class_5321<T> arg2, class_2520 arg3)
parseFromServer(com.mojang.serialization.Decoder<T> decoder, RegistryOps<NbtElement> nbtOps, RegistryKey<T> key, NbtElement value)
public RegistryKey<T>
key()
comp_1_12()
key()
public com.mojang.datafixers.util.Either<T, Exception>
value()
comp_1_14()
value()
public RegistryEntryInfo
registrationInfo()
comp_1_13()
registrationInfo()
private static com.mojang.datafixers.util.Either
lambda$findAndLoadFromResource$1(Identifier arg0, ResourceKey arg1)
method_1_446(class_2960 arg0, class_5321 arg1)
method_1_446(Identifier arg0, RegistryKey arg1)
private static com.mojang.datafixers.util.Either
lambda$findAndLoadFromResource$0(com.mojang.serialization.Decoder arg0, RegistryOps arg1, ResourceKey arg2, Resource arg3)
method_1_445(com.mojang.serialization.Decoder arg0, class_6903 arg1, class_5321 arg2, class_3298 arg3)
method_1_445(com.mojang.serialization.Decoder arg0, RegistryOps arg1, RegistryKey arg2, Resource resource)