Record Class WorldMapPlacement
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.WorldMapPlacement
- Record Components:
plane- 0..3tileX- absolute world tile XtileY- absolute world tile YmembersOnly- whether this placement is in a members-only area
public record WorldMapPlacement(int plane, int tileX, int tileY, boolean membersOnly)
extends Record
A single placement of a
WorldMapElement on the world map. A given
element may exist at multiple tiles (e.g. "Bank" has many placements);
each entry gives the absolute tile coordinates and member-only status.-
Constructor Summary
ConstructorsConstructorDescriptionWorldMapPlacement(int plane, int tileX, int tileY, boolean membersOnly) Creates an instance of aWorldMapPlacementrecord 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.booleanReturns the value of themembersOnlyrecord component.intplane()Returns the value of theplanerecord 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
-
WorldMapPlacement
public WorldMapPlacement(int plane, int tileX, int tileY, boolean membersOnly) Creates an instance of aWorldMapPlacementrecord class.- Parameters:
plane- the value for theplanerecord componenttileX- the value for thetileXrecord componenttileY- the value for thetileYrecord componentmembersOnly- the value for themembersOnlyrecord 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. -
plane
-
tileX
-
tileY
-
membersOnly
public boolean membersOnly()Returns the value of themembersOnlyrecord component.- Returns:
- the value of the
membersOnlyrecord component
-