Record Class GroundItem
java.lang.Object
java.lang.Record
com.botwithus.bot.api.snapshot.GroundItem
- Record Components:
itemId- item type id (resolves viaGameAPI.getItemType)quantity- stack size; 1 for non-stackable itemstileX- absolute world tile XtileY- absolute world tile Yplane-0..3
Snapshot of one ground-item stack at the producer's current tick (v15+).
Rows come from the producer's ObjStackList walk; every alive bucket entry within the loaded-scene tile bounds is emitted. Consumers spatially filter on the immutable snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionGroundItem(int itemId, int quantity, int tileX, int tileY, int plane) Creates an instance of aGroundItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.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
-
GroundItem
public GroundItem(int itemId, int quantity, int tileX, int tileY, int plane) Creates an instance of aGroundItemrecord class.
-
-
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. -
itemId
-
quantity
-
tileX
-
tileY
-
plane
-