Record Class LocationType
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.LocationType
- Record Components:
id- the location type IDname- the location display namesizeX- the X dimension in tilessizeY- the Y dimension in tilesinteractType- the interaction typesolidType- the collision/solid typemembers- whether this is members-onlyoptions- the right-click interaction optionsvarbitId- the varbit controlling transformation, or-1if nonevarpId- the varp controlling transformation, or-1if nonetransforms- the list of type IDs this location can transform intomapSpriteId- the minimap sprite ID, or0if noneparams- additional key-value parameters from the location definition
public record LocationType(int id, String name, int sizeX, int sizeY, int interactType, int solidType, boolean members, List<String> options, int varbitId, int varpId, List<Integer> transforms, int mapSpriteId, Map<String,Object> params)
extends Record
Location (game object) definition from the game cache.
- See Also:
-
Constructor Summary
Constructors -
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.intid()Returns the value of theidrecord component.intReturns the value of theinteractTyperecord component.intReturns the value of themapSpriteIdrecord component.booleanmembers()Returns the value of themembersrecord component.name()Returns the value of thenamerecord component.options()Returns the value of theoptionsrecord component.params()Returns the value of theparamsrecord component.intsizeX()Returns the value of thesizeXrecord component.intsizeY()Returns the value of thesizeYrecord component.intReturns the value of thesolidTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformsrecord component.intvarbitId()Returns the value of thevarbitIdrecord component.intvarpId()Returns the value of thevarpIdrecord component.
-
Constructor Details
-
LocationType
public LocationType(int id, String name, int sizeX, int sizeY, int interactType, int solidType, boolean members, List<String> options, int varbitId, int varpId, List<Integer> transforms, int mapSpriteId, Map<String, Object> params) Creates an instance of aLocationTyperecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentsizeX- the value for thesizeXrecord componentsizeY- the value for thesizeYrecord componentinteractType- the value for theinteractTyperecord componentsolidType- the value for thesolidTyperecord componentmembers- the value for themembersrecord componentoptions- the value for theoptionsrecord componentvarbitId- the value for thevarbitIdrecord componentvarpId- the value for thevarpIdrecord componenttransforms- the value for thetransformsrecord componentmapSpriteId- the value for themapSpriteIdrecord componentparams- the value for theparamsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
name
-
sizeX
-
sizeY
-
interactType
public int interactType()Returns the value of theinteractTyperecord component.- Returns:
- the value of the
interactTyperecord component
-
solidType
-
members
-
options
-
varbitId
-
varpId
-
transforms
Returns the value of thetransformsrecord component.- Returns:
- the value of the
transformsrecord component
-
mapSpriteId
public int mapSpriteId()Returns the value of themapSpriteIdrecord component.- Returns:
- the value of the
mapSpriteIdrecord component
-
params
-