Interface ResourceOrIdArgument.Result<T,O>
- All Known Implementing Classes:
ResourceOrIdArgument.InlineResult, ResourceOrIdArgument.ReferenceResult
- Enclosing class:
ResourceOrIdArgument<T>
public static sealed interface ResourceOrIdArgument.Result<T,O>
permits ResourceOrIdArgument.InlineResult<T,O>, ResourceOrIdArgument.ReferenceResult<T,O>
-
Method Summary
Modifier and TypeMethodDescriptionparse(com.mojang.brigadier.ImmutableStringReader reader, HolderLookup.Provider lookup, com.mojang.serialization.DynamicOps<O> ops, com.mojang.serialization.Codec<T> codec, HolderLookup.RegistryLookup<T> elementLookup)
-
Method Details
-
parse
Holder<T> parse(com.mojang.brigadier.ImmutableStringReader reader, HolderLookup.Provider lookup, com.mojang.serialization.DynamicOps<O> ops, com.mojang.serialization.Codec<T> codec, HolderLookup.RegistryLookup<T> elementLookup) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-