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

  • Constructor Details

  • 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

      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