API Surface (0) No public/protected methods detected (fields or constants only).
Code Graph: Dependencies (1) Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.
Full Source
DelayedException.java 19 lines · Minecraft 26.3 · verbatim Copy
1 package net.minecraft.util.parsing.packrat;
2
3 import com.mojang.brigadier.exceptions.CommandSyntaxException;
4 import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
5 import com.mojang.brigadier.exceptions.SimpleCommandExceptionType;
6 import net.minecraft.util.parsing.packrat.commands.StringReaderTerms;
7
8 public interface DelayedException<T extends Exception> {
9 T create(String contents, int position);
10
11 static DelayedException<CommandSyntaxException> create(final SimpleCommandExceptionType type) {
12 return (contents, position) -> type.createWithContext(StringReaderTerms.createReader(contents, position));
13 }
14
15 static DelayedException<CommandSyntaxException> create(final DynamicCommandExceptionType type, final String argument) {
16 return (contents, position) -> type.createWithContext(StringReaderTerms.createReader(contents, position), argument);
17 }
18 }
19
Decompiled Minecraft 26.3 source of DelayedException (net/minecraft/util/parsing/packrat/DelayedException.java) with Mojang official mappings, stored verbatim on the site.