Package net.minecraft.commands.execution
Record Class Frame
java.lang.Object
java.lang.Record
net.minecraft.commands.execution.Frame
public record Frame(int depth, CommandResultCallback returnValueConsumer, Frame.FrameControl frameControl)
extends Record
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thedepth
record component.private final Frame.FrameControl
The field for theframeControl
record component.private final CommandResultCallback
The field for thereturnValueConsumer
record component. -
Constructor Summary
ConstructorDescriptionFrame
(int depth, CommandResultCallback returnValueConsumer, Frame.FrameControl frameControl) Creates an instance of aFrame
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
depth()
Returns the value of thedepth
record component.void
discard()
final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theframeControl
record component.final int
hashCode()
Returns a hash code value for this object.void
void
returnSuccess
(int p_309616_) Returns the value of thereturnValueConsumer
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
depth
private final int depthThe field for thedepth
record component. -
returnValueConsumer
The field for thereturnValueConsumer
record component. -
frameControl
The field for theframeControl
record component.
-
-
Constructor Details
-
Frame
Creates an instance of aFrame
record class.- Parameters:
depth
- the value for thedepth
record componentreturnValueConsumer
- the value for thereturnValueConsumer
record componentframeControl
- the value for theframeControl
record component
-
-
Method Details
-
returnSuccess
public void returnSuccess(int p_309616_) -
returnFailure
public void returnFailure() -
discard
public void discard() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
depth
public int depth()Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-
returnValueConsumer
Returns the value of thereturnValueConsumer
record component.- Returns:
- the value of the
returnValueConsumer
record component
-
frameControl
Returns the value of theframeControl
record component.- Returns:
- the value of the
frameControl
record component
-