Record Class GroundItemInfo
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.GroundItemInfo
- Record Components:
handle- opaque server-side handle for action queueingitemId- ItemType id (resolve full definition viagetItemType)quantity- stack size (always >= 1; the producer drops empty stacks before serializing)tileX- absolute world tile XtileY- absolute world tile Yplane- 0..3
public record GroundItemInfo(int handle, int itemId, int quantity, int tileX, int tileY, int plane)
extends Record
Wire-format record returned by
query_ground_items for one stack
of items lying on the ground.-
Constructor Summary
ConstructorsConstructorDescriptionGroundItemInfo(int handle, int itemId, int quantity, int tileX, int tileY, int plane) Creates an instance of aGroundItemInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.inthandle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.intitemId()Returns the value of theitemIdrecord component.intplane()Returns the value of theplanerecord component.intquantity()Returns the value of thequantityrecord component.inttileX()Returns the value of thetileXrecord component.inttileY()Returns the value of thetileYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GroundItemInfo
public GroundItemInfo(int handle, int itemId, int quantity, int tileX, int tileY, int plane) Creates an instance of aGroundItemInforecord class.- Parameters:
handle- the value for thehandlerecord componentitemId- the value for theitemIdrecord componentquantity- the value for thequantityrecord componenttileX- the value for thetileXrecord componenttileY- the value for thetileYrecord componentplane- the value for theplanerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
handle
-
itemId
-
quantity
-
tileX
-
tileY
-
plane
-