Package dev.rollczi.litecommands.folia
Record Class FoliaExtension.Settings
java.lang.Object
java.lang.Record
dev.rollczi.litecommands.folia.FoliaExtension.Settings
- Enclosing class:
FoliaExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Supplier<dev.rollczi.litecommands.scheduler.Scheduler> Returns the value of thefallbackSchedulerrecord component.fallbackScheduler(Supplier<dev.rollczi.litecommands.scheduler.Scheduler> fallbackScheduler) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseRegionSchedulerIfAvailablerecord component.
-
Constructor Details
-
Settings
public Settings(boolean useRegionSchedulerIfAvailable, @Nullable @Nullable Supplier<dev.rollczi.litecommands.scheduler.Scheduler> fallbackScheduler) Creates an instance of aSettingsrecord class.- Parameters:
useRegionSchedulerIfAvailable- the value for theuseRegionSchedulerIfAvailablerecord componentfallbackScheduler- the value for thefallbackSchedulerrecord component
-
-
Method Details
-
fallbackScheduler
public FoliaExtension.Settings fallbackScheduler(Supplier<dev.rollczi.litecommands.scheduler.Scheduler> fallbackScheduler) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
useRegionSchedulerIfAvailable
public boolean useRegionSchedulerIfAvailable()Returns the value of theuseRegionSchedulerIfAvailablerecord component.- Returns:
- the value of the
useRegionSchedulerIfAvailablerecord component
-
fallbackScheduler
@Nullable public @Nullable Supplier<dev.rollczi.litecommands.scheduler.Scheduler> fallbackScheduler()Returns the value of thefallbackSchedulerrecord component.- Returns:
- the value of the
fallbackSchedulerrecord component
-