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/Frameintermediary net/minecraft/class_8937official hunamed depthintermediary comp_2022official anamed returnValueConsumerintermediary comp_2023official bnamed frameControlintermediary comp_2024official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedepthrecord component.private final Frame.ControlThe field for theframeControlrecord component.private final ReturnValueConsumerThe field for thereturnValueConsumerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFrame(int int2, ReturnValueConsumer returnValueConsumer, Frame.Control control) -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.voiddoReturn()final booleanIndicates whether some other object is "equal to" this one.voidfail()Returns the value of theframeControlrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thereturnValueConsumerrecord component.voidsucceed(int returnValue) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
depth
private final int depthThe field for thedepthrecord component. -
returnValueConsumer
The field for thereturnValueConsumerrecord component. -
frameControl
The field for theframeControlrecord component.
-
-
Constructor Details
-
Frame
-
-
Method Details
-
succeed
public void succeed(int returnValue) - Mappings:
Namespace Name Mixin selector named succeedLnet/minecraft/command/Frame;succeed(I)Vintermediary method_54895Lnet/minecraft/class_8937;method_54895(I)Vofficial aLhu;a(I)V
-
fail
public void fail()- Mappings:
Namespace Name Mixin selector named failLnet/minecraft/command/Frame;fail()Vintermediary method_54894Lnet/minecraft/class_8937;method_54894()Vofficial aLhu;a()V
-
doReturn
public void doReturn()- Mappings:
Namespace Name Mixin selector named doReturnLnet/minecraft/command/Frame;doReturn()Vintermediary method_54896Lnet/minecraft/class_8937;method_54896()Vofficial bLhu;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 thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
returnValueConsumer
Returns the value of thereturnValueConsumerrecord component.- Returns:
- the value of the
returnValueConsumerrecord component
-
frameControl
Returns the value of theframeControlrecord component.- Returns:
- the value of the
frameControlrecord component
-