Package net.minecraft.command
Record Class Frame
java.lang.Object
java.lang.Record
net.minecraft.command.Frame
- Record Components:
depth
-returnValueConsumer
-frameControl
-
public record Frame(int depth, ReturnValueConsumer returnValueConsumer, Frame.Control frameControl)
extends Record
- Mappings:
Namespace Name official gq
intermediary net/minecraft/class_8937
named net/minecraft/command/Frame
official a
intermediary comp_2022
named depth
official b
intermediary comp_2023
named returnValueConsumer
official c
intermediary comp_2024
named frameControl
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thedepth
record component.private final Frame.Control
The field for theframeControl
record component.private final ReturnValueConsumer
The field for thereturnValueConsumer
record component. -
Constructor Summary
ConstructorDescriptionFrame
(int int2, ReturnValueConsumer returnValueConsumer, Frame.Control control) -
Method Summary
Modifier and TypeMethodDescriptionint
depth()
Returns the value of thedepth
record component.void
doReturn()
final boolean
Indicates whether some other object is "equal to" this one.void
fail()
Returns the value of theframeControl
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thereturnValueConsumer
record component.void
succeed
(int returnValue) 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
-
-
Method Details
-
succeed
public void succeed(int returnValue) - Mappings:
Namespace Name Mixin selector official a
Lgq;a(I)V
intermediary method_54895
Lnet/minecraft/class_8937;method_54895(I)V
named succeed
Lnet/minecraft/command/Frame;succeed(I)V
-
fail
public void fail()- Mappings:
Namespace Name Mixin selector official a
Lgq;a()V
intermediary method_54894
Lnet/minecraft/class_8937;method_54894()V
named fail
Lnet/minecraft/command/Frame;fail()V
-
doReturn
public void doReturn()- Mappings:
Namespace Name Mixin selector official b
Lgq;b()V
intermediary method_54896
Lnet/minecraft/class_8937;method_54896()V
named doReturn
Lnet/minecraft/command/Frame;doReturn()V
-
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
-