Package net.minecraft.server.commands
Class DebugCommand.Tracer
java.lang.Object
net.minecraft.server.commands.DebugCommand.Tracer
- All Implemented Interfaces:
AutoCloseable
,CommandSource
,TraceCallbacks
- Enclosing class:
DebugCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private int
private final PrintWriter
private boolean
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
void
close()
private void
indentAndSave
(int indent) private void
newLine()
void
onCall
(int depth, ResourceLocation function, int commands) void
void
void
private void
printIndent
(int indent) void
sendSystemMessage
(Component component) boolean
-
Field Details
-
INDENT_OFFSET
public static final int INDENT_OFFSET- See Also:
-
output
-
lastIndent
private int lastIndent -
waitingForResult
private boolean waitingForResult
-
-
Constructor Details
-
Tracer
Tracer(PrintWriter output)
-
-
Method Details
-
indentAndSave
private void indentAndSave(int indent) -
printIndent
private void printIndent(int indent) -
newLine
private void newLine() -
onCommand
- Specified by:
onCommand
in interfaceTraceCallbacks
-
onReturn
- Specified by:
onReturn
in interfaceTraceCallbacks
-
onCall
- Specified by:
onCall
in interfaceTraceCallbacks
-
onError
- Specified by:
onError
in interfaceTraceCallbacks
-
sendSystemMessage
- Specified by:
sendSystemMessage
in interfaceCommandSource
-
acceptsSuccess
public boolean acceptsSuccess()- Specified by:
acceptsSuccess
in interfaceCommandSource
-
acceptsFailure
public boolean acceptsFailure()- Specified by:
acceptsFailure
in interfaceCommandSource
-
shouldInformAdmins
public boolean shouldInformAdmins()- Specified by:
shouldInformAdmins
in interfaceCommandSource
-
alwaysAccepts
public boolean alwaysAccepts()- Specified by:
alwaysAccepts
in interfaceCommandSource
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceTraceCallbacks
-