Package dev.aurelium.slate.item
Record Class TemplateData<C>
java.lang.Object
java.lang.Record
dev.aurelium.slate.item.TemplateData<C>
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateData(Map<C, PositionProvider> positions, Map<C, org.bukkit.inventory.ItemStack> baseItems, Map<C, String> displayNames, Map<C, List<LoreLine>> lore, Map<C, ItemConditions> conditions, Map<C, ItemActions> actions, List<TemplateVariant<C>> variants) Creates an instance of aTemplateDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.Returns the value of thebaseItemsrecord component.Returns the value of theconditionsrecord component.Returns the value of thedisplayNamesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lore()Returns the value of thelorerecord component.Returns the value of thepositionsrecord component.final StringtoString()Returns a string representation of this record class.variants()Returns the value of thevariantsrecord component.
-
Constructor Details
-
TemplateData
public TemplateData(Map<C, PositionProvider> positions, Map<C, org.bukkit.inventory.ItemStack> baseItems, Map<C, String> displayNames, Map<C, List<LoreLine>> lore, Map<C, ItemConditions> conditions, Map<C, ItemActions> actions, List<TemplateVariant<C>> variants) Creates an instance of aTemplateDatarecord class.- Parameters:
positions- the value for thepositionsrecord componentbaseItems- the value for thebaseItemsrecord componentdisplayNames- the value for thedisplayNamesrecord componentlore- the value for thelorerecord componentconditions- the value for theconditionsrecord componentactions- the value for theactionsrecord componentvariants- the value for thevariantsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object). -
positions
Returns the value of thepositionsrecord component.- Returns:
- the value of the
positionsrecord component
-
baseItems
Returns the value of thebaseItemsrecord component.- Returns:
- the value of the
baseItemsrecord component
-
displayNames
Returns the value of thedisplayNamesrecord component.- Returns:
- the value of the
displayNamesrecord component
-
lore
Returns the value of thelorerecord component.- Returns:
- the value of the
lorerecord component
-
conditions
Returns the value of theconditionsrecord component.- Returns:
- the value of the
conditionsrecord component
-
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-
variants
Returns the value of thevariantsrecord component.- Returns:
- the value of the
variantsrecord component
-