Frame .java

net.minecraft.commands.execution.Frame (record): members: depth, returnValueConsumer, frameControl, returnFailure, returnSuccess, FrameControl, discard.

net.minecraft.commands.executionrecord23 linescommon514 B

API Surface (4)

record Frame(int depth, CommandResultCallback returnValueConsumer, Frame.FrameControl frameControl)
void returnSuccess(final int value)
void returnFailure()
void discard()

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

Frame.java23 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.commands.execution;
2
3
import net.minecraft.commands.CommandResultCallback;
4
5
public record Frame(int depth, CommandResultCallback returnValueConsumer, Frame.FrameControl frameControl) {
6
	public void returnSuccess(final int value) {
7
		this.returnValueConsumer.onSuccess(value);
8
	}
9
10
	public void returnFailure() {
11
		this.returnValueConsumer.onFailure();
12
	}
13
14
	public void discard() {
15
		this.frameControl.discard();
16
	}
17
18
	@FunctionalInterface
19
	public interface FrameControl {
20
		void discard();
21
	}
22
}
23

Decompiled Minecraft 26.3 source of Frame (net/minecraft/commands/execution/Frame.java) with Mojang official mappings, stored verbatim on the site.