Record Class RelicAPI.SlotResult
java.lang.Object
java.lang.Record
com.github.darksoulq.relique.api.RelicAPI.SlotResult
- Enclosing class:
RelicAPI
-
Constructor Summary
ConstructorsConstructorDescriptionSlotResult(String slotId, int index, org.bukkit.inventory.ItemStack item) Creates an instance of aSlotResultrecord 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.intindex()Returns the value of theindexrecord component.org.bukkit.inventory.ItemStackitem()Returns the value of theitemrecord component.slotId()Returns the value of theslotIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlotResult
Creates an instance of aSlotResultrecord class.- Parameters:
slotId- the value for theslotIdrecord componentindex- the value for theindexrecord componentitem- the value for theitemrecord 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. -
slotId
Returns the value of theslotIdrecord component.- Returns:
- the value of the
slotIdrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
item
public org.bukkit.inventory.ItemStack item()Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-