Package dev.aurelium.slate.builder
Record Class GlobalOptions
java.lang.Object
java.lang.Record
dev.aurelium.slate.builder.GlobalOptions
public record GlobalOptions(Set<ItemReplacer> globalReplacers, LocaleProvider localeProvider)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalOptions(Set<ItemReplacer> globalReplacers, LocaleProvider localeProvider) Creates an instance of aGlobalOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapplyGlobalReplacers(String input, Slate slate, org.bukkit.entity.Player player, ActiveMenu activeMenu, PlaceholderType type) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theglobalReplacersrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocaleProviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GlobalOptions
Creates an instance of aGlobalOptionsrecord class.- Parameters:
globalReplacers- the value for theglobalReplacersrecord componentlocaleProvider- the value for thelocaleProviderrecord 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). -
globalReplacers
Returns the value of theglobalReplacersrecord component.- Returns:
- the value of the
globalReplacersrecord component
-
localeProvider
Returns the value of thelocaleProviderrecord component.- Returns:
- the value of the
localeProviderrecord component