Record Class GearService.GearView
java.lang.Object
java.lang.Record
dev.yowsef.stealablock.api.gear.GearService.GearView
- Enclosing interface:
GearService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabilityLinesrecord component.@NotNull StringbaseId()Returns the value of thebaseIdrecord component.@NotNull StringReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringid()Returns the value of theidrecord component.@NotNull org.bukkit.Materialmaterial()Returns the value of thematerialrecord component.doubleprice()Returns the value of thepricerecord component.inttier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GearView
public GearView(@NotNull @NotNull String id, @NotNull @NotNull String baseId, @NotNull @NotNull String displayName, @NotNull @NotNull org.bukkit.Material material, int tier, double price, @NotNull @NotNull List<String> abilityLines) Creates an instance of aGearViewrecord class.- Parameters:
id- the value for theidrecord componentbaseId- the value for thebaseIdrecord componentdisplayName- the value for thedisplayNamerecord componentmaterial- the value for thematerialrecord componenttier- the value for thetierrecord componentprice- the value for thepricerecord componentabilityLines- the value for theabilityLinesrecord 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
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
baseId
Returns the value of thebaseIdrecord component.- Returns:
- the value of the
baseIdrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
material
@NotNull public @NotNull org.bukkit.Material material()Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
tier
public int tier()Returns the value of thetierrecord component.- Returns:
- the value of the
tierrecord component
-
price
public double price()Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
abilityLines
-