Record Class ResourceItem
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.ResourceItem
- Record Components:
itemId- item type id (e.g. 453 for coal)level- minimum level to obtainquantity- quantity per harvest action when applicable;0for "unspecified"
A single resource line on a
WorldMapElement — typically an ore,
fish, or log obtainable at the spot.-
Constructor Summary
ConstructorsConstructorDescriptionResourceItem(int itemId, int level, int quantity) Creates an instance of aResourceItemrecord 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.intlevel()Returns the value of thelevelrecord component.intquantity()Returns the value of thequantityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceItem
-
-
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
-
level
-
quantity
-