Record Class ItemStackRequestPacket.ItemStackAction

java.lang.Object
java.lang.Record
cn.nukkit.network.protocol.ItemStackRequestPacket.ItemStackAction
Enclosing class:
ItemStackRequestPacket

@Since("1.4.0.0-PN") public static record ItemStackRequestPacket.ItemStackAction(byte type, boolean bool0, byte byte0, int varInt0, int varInt1, byte baseByte0, byte baseByte1, byte baseByte2, int baseVarInt0, byte flagsByte0, byte flagsByte1, int flagsVarInt0, List<Item> items) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemStackAction(byte type, boolean bool0, byte byte0, int varInt0, int varInt1, byte baseByte0, byte baseByte1, byte baseByte2, int baseVarInt0, byte flagsByte0, byte flagsByte1, int flagsVarInt0, List<Item> items)
    Creates an instance of a ItemStackAction record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    Returns the value of the baseByte0 record component.
    byte
    Returns the value of the baseByte1 record component.
    byte
    Returns the value of the baseByte2 record component.
    int
    Returns the value of the baseVarInt0 record component.
    boolean
    Returns the value of the bool0 record component.
    byte
    Returns the value of the byte0 record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    byte
    Returns the value of the flagsByte0 record component.
    byte
    Returns the value of the flagsByte1 record component.
    int
    Returns the value of the flagsVarInt0 record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the items record component.
    Returns a string representation of this record class.
    byte
    Returns the value of the type record component.
    int
    Returns the value of the varInt0 record component.
    int
    Returns the value of the varInt1 record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ItemStackAction

      public ItemStackAction(byte type, boolean bool0, byte byte0, int varInt0, int varInt1, byte baseByte0, byte baseByte1, byte baseByte2, int baseVarInt0, byte flagsByte0, byte flagsByte1, int flagsVarInt0, List<Item> items)
      Creates an instance of a ItemStackAction record class.
      Parameters:
      type - the value for the type record component
      bool0 - the value for the bool0 record component
      byte0 - the value for the byte0 record component
      varInt0 - the value for the varInt0 record component
      varInt1 - the value for the varInt1 record component
      baseByte0 - the value for the baseByte0 record component
      baseByte1 - the value for the baseByte1 record component
      baseByte2 - the value for the baseByte2 record component
      baseVarInt0 - the value for the baseVarInt0 record component
      flagsByte0 - the value for the flagsByte0 record component
      flagsByte1 - the value for the flagsByte1 record component
      flagsVarInt0 - the value for the flagsVarInt0 record component
      items - the value for the items record component
  • Method Details

    • toString

      public 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public byte type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • bool0

      public boolean bool0()
      Returns the value of the bool0 record component.
      Returns:
      the value of the bool0 record component
    • byte0

      public byte byte0()
      Returns the value of the byte0 record component.
      Returns:
      the value of the byte0 record component
    • varInt0

      public int varInt0()
      Returns the value of the varInt0 record component.
      Returns:
      the value of the varInt0 record component
    • varInt1

      public int varInt1()
      Returns the value of the varInt1 record component.
      Returns:
      the value of the varInt1 record component
    • baseByte0

      public byte baseByte0()
      Returns the value of the baseByte0 record component.
      Returns:
      the value of the baseByte0 record component
    • baseByte1

      public byte baseByte1()
      Returns the value of the baseByte1 record component.
      Returns:
      the value of the baseByte1 record component
    • baseByte2

      public byte baseByte2()
      Returns the value of the baseByte2 record component.
      Returns:
      the value of the baseByte2 record component
    • baseVarInt0

      public int baseVarInt0()
      Returns the value of the baseVarInt0 record component.
      Returns:
      the value of the baseVarInt0 record component
    • flagsByte0

      public byte flagsByte0()
      Returns the value of the flagsByte0 record component.
      Returns:
      the value of the flagsByte0 record component
    • flagsByte1

      public byte flagsByte1()
      Returns the value of the flagsByte1 record component.
      Returns:
      the value of the flagsByte1 record component
    • flagsVarInt0

      public int flagsVarInt0()
      Returns the value of the flagsVarInt0 record component.
      Returns:
      the value of the flagsVarInt0 record component
    • items

      public List<Item> items()
      Returns the value of the items record component.
      Returns:
      the value of the items record component