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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for thedepthrecord component.private final Frame.FrameControlThe field for theframeControlrecord component.private final CommandResultCallbackThe field for thereturnValueConsumerrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionFrame(int depth, CommandResultCallback returnValueConsumer, Frame.FrameControl frameControl) Creates an instance of aFramerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.voiddiscard()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theframeControlrecord component.final inthashCode()Returns a hash code value for this object.voidvoidreturnSuccess(int p_309616_) Returns the value of thereturnValueConsumerrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
depthprivate final int depthThe field for thedepthrecord component.
- 
returnValueConsumerThe field for thereturnValueConsumerrecord component.
- 
frameControlThe field for theframeControlrecord component.
 
- 
- 
Constructor Details- 
FrameCreates an instance of aFramerecord class.- Parameters:
- depth- the value for the- depthrecord component
- returnValueConsumer- the value for the- returnValueConsumerrecord component
- frameControl- the value for the- frameControlrecord component
 
 
- 
- 
Method Details- 
returnSuccesspublic void returnSuccess(int p_309616_) 
- 
returnFailurepublic void returnFailure()
- 
discardpublic void discard()
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
depthpublic int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the depthrecord component
 
- 
returnValueConsumerReturns the value of thereturnValueConsumerrecord component.- Returns:
- the value of the returnValueConsumerrecord component
 
- 
frameControlReturns the value of theframeControlrecord component.- Returns:
- the value of the frameControlrecord component
 
 
-