Package cn.nukkit.network.protocol
Record Class ItemStackRequestPacket.ItemStackAction
java.lang.Object
java.lang.Record
cn.nukkit.network.protocol.ItemStackRequestPacket.ItemStackAction
- Enclosing class:
- ItemStackRequestPacket
-
Constructor Summary
ConstructorDescriptionItemStackAction
(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 aItemStackAction
record class. -
Method Summary
Modifier and TypeMethodDescriptionbyte
Returns the value of thebaseByte0
record component.byte
Returns the value of thebaseByte1
record component.byte
Returns the value of thebaseByte2
record component.int
Returns the value of thebaseVarInt0
record component.boolean
bool0()
Returns the value of thebool0
record component.byte
byte0()
Returns the value of thebyte0
record component.final boolean
Indicates whether some other object is "equal to" this one.byte
Returns the value of theflagsByte0
record component.byte
Returns the value of theflagsByte1
record component.int
Returns the value of theflagsVarInt0
record component.final int
hashCode()
Returns a hash code value for this object.items()
Returns the value of theitems
record component.toString()
Returns a string representation of this record class.byte
type()
Returns the value of thetype
record component.int
varInt0()
Returns the value of thevarInt0
record component.int
varInt1()
Returns the value of thevarInt1
record component.
-
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 aItemStackAction
record class.- Parameters:
type
- the value for thetype
record componentbool0
- the value for thebool0
record componentbyte0
- the value for thebyte0
record componentvarInt0
- the value for thevarInt0
record componentvarInt1
- the value for thevarInt1
record componentbaseByte0
- the value for thebaseByte0
record componentbaseByte1
- the value for thebaseByte1
record componentbaseByte2
- the value for thebaseByte2
record componentbaseVarInt0
- the value for thebaseVarInt0
record componentflagsByte0
- the value for theflagsByte0
record componentflagsByte1
- the value for theflagsByte1
record componentflagsVarInt0
- the value for theflagsVarInt0
record componentitems
- the value for theitems
record component
-
-
Method Details
-
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 '=='. -
type
public byte type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
bool0
public boolean bool0()Returns the value of thebool0
record component.- Returns:
- the value of the
bool0
record component
-
byte0
public byte byte0()Returns the value of thebyte0
record component.- Returns:
- the value of the
byte0
record component
-
varInt0
public int varInt0()Returns the value of thevarInt0
record component.- Returns:
- the value of the
varInt0
record component
-
varInt1
public int varInt1()Returns the value of thevarInt1
record component.- Returns:
- the value of the
varInt1
record component
-
baseByte0
public byte baseByte0()Returns the value of thebaseByte0
record component.- Returns:
- the value of the
baseByte0
record component
-
baseByte1
public byte baseByte1()Returns the value of thebaseByte1
record component.- Returns:
- the value of the
baseByte1
record component
-
baseByte2
public byte baseByte2()Returns the value of thebaseByte2
record component.- Returns:
- the value of the
baseByte2
record component
-
baseVarInt0
public int baseVarInt0()Returns the value of thebaseVarInt0
record component.- Returns:
- the value of the
baseVarInt0
record component
-
flagsByte0
public byte flagsByte0()Returns the value of theflagsByte0
record component.- Returns:
- the value of the
flagsByte0
record component
-
flagsByte1
public byte flagsByte1()Returns the value of theflagsByte1
record component.- Returns:
- the value of the
flagsByte1
record component
-
flagsVarInt0
public int flagsVarInt0()Returns the value of theflagsVarInt0
record component.- Returns:
- the value of the
flagsVarInt0
record component
-
items
Returns the value of theitems
record component.- Returns:
- the value of the
items
record component
-