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 named net/minecraft/command/Frame
intermediary net/minecraft/class_8937
official hy
named depth
intermediary comp_2022
official a
named returnValueConsumer
intermediary comp_2023
official b
named frameControl
intermediary comp_2024
official c
-
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 named succeed
Lnet/minecraft/command/Frame;succeed(I)V
intermediary method_54895
Lnet/minecraft/class_8937;method_54895(I)V
official a
Lhy;a(I)V
-
fail
public void fail()- Mappings:
Namespace Name Mixin selector named fail
Lnet/minecraft/command/Frame;fail()V
intermediary method_54894
Lnet/minecraft/class_8937;method_54894()V
official a
Lhy;a()V
-
doReturn
public void doReturn()- Mappings:
Namespace Name Mixin selector named doReturn
Lnet/minecraft/command/Frame;doReturn()V
intermediary method_54896
Lnet/minecraft/class_8937;method_54896()V
official b
Lhy;b()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
-