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
  • Field Details

  • Constructor Details

  • 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • depth

      public int depth()
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • returnValueConsumer

      public ReturnValueConsumer returnValueConsumer()
      Returns the value of the returnValueConsumer record component.
      Returns:
      the value of the returnValueConsumer record component
    • frameControl

      public Frame.Control frameControl()
      Returns the value of the frameControl record component.
      Returns:
      the value of the frameControl record component