Record Class LifestealerConfiguration.Values
java.lang.Object
java.lang.Record
dev.chicoferreira.lifestealer.configuration.LifestealerConfiguration.Values
- Enclosing class:
LifestealerConfiguration
public static record LifestealerConfiguration.Values(Integer startingHearts, LifestealerUserRules defaultUserRules, List<LifestealerUserRulesGroup> userGroupRules, LifestealerHeartItemManager.Settings heartItemSettings, List<LifestealerHeartDropRestrictionAction> heartDropRestrictionActions, LifestealerUserController.BanSettings banSettings, UserPersistentStorageProperties storageProperties, net.kyori.adventure.text.Component errorKickMessage, Map<String,DurationUtils.DurationFormatSettings> durationFormats)
extends Record
Holds every configuratable data
-
Constructor Summary
ConstructorsConstructorDescriptionValues(Integer startingHearts, LifestealerUserRules defaultUserRules, List<LifestealerUserRulesGroup> userGroupRules, LifestealerHeartItemManager.Settings heartItemSettings, List<LifestealerHeartDropRestrictionAction> heartDropRestrictionActions, LifestealerUserController.BanSettings banSettings, UserPersistentStorageProperties storageProperties, net.kyori.adventure.text.Component errorKickMessage, Map<String, DurationUtils.DurationFormatSettings> durationFormats) Creates an instance of aValuesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebanSettingsrecord component.Returns the value of thedefaultUserRulesrecord component.Returns the value of thedurationFormatsrecord component.final booleanIndicates whether some other object is "equal to" this one.net.kyori.adventure.text.ComponentReturns the value of theerrorKickMessagerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheartDropRestrictionActionsrecord component.Returns the value of theheartItemSettingsrecord component.Returns the value of thestartingHeartsrecord component.Returns the value of thestoragePropertiesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserGroupRulesrecord component.
-
Constructor Details
-
Values
public Values(Integer startingHearts, LifestealerUserRules defaultUserRules, List<LifestealerUserRulesGroup> userGroupRules, LifestealerHeartItemManager.Settings heartItemSettings, List<LifestealerHeartDropRestrictionAction> heartDropRestrictionActions, LifestealerUserController.BanSettings banSettings, UserPersistentStorageProperties storageProperties, net.kyori.adventure.text.Component errorKickMessage, Map<String, DurationUtils.DurationFormatSettings> durationFormats) Creates an instance of aValuesrecord class.- Parameters:
startingHearts- the value for thestartingHeartsrecord componentdefaultUserRules- the value for thedefaultUserRulesrecord componentuserGroupRules- the value for theuserGroupRulesrecord componentheartItemSettings- the value for theheartItemSettingsrecord componentheartDropRestrictionActions- the value for theheartDropRestrictionActionsrecord componentbanSettings- the value for thebanSettingsrecord componentstorageProperties- the value for thestoragePropertiesrecord componenterrorKickMessage- the value for theerrorKickMessagerecord componentdurationFormats- the value for thedurationFormatsrecord 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). -
startingHearts
Returns the value of thestartingHeartsrecord component.- Returns:
- the value of the
startingHeartsrecord component
-
defaultUserRules
Returns the value of thedefaultUserRulesrecord component.- Returns:
- the value of the
defaultUserRulesrecord component
-
userGroupRules
Returns the value of theuserGroupRulesrecord component.- Returns:
- the value of the
userGroupRulesrecord component
-
heartItemSettings
Returns the value of theheartItemSettingsrecord component.- Returns:
- the value of the
heartItemSettingsrecord component
-
heartDropRestrictionActions
Returns the value of theheartDropRestrictionActionsrecord component.- Returns:
- the value of the
heartDropRestrictionActionsrecord component
-
banSettings
Returns the value of thebanSettingsrecord component.- Returns:
- the value of the
banSettingsrecord component
-
storageProperties
Returns the value of thestoragePropertiesrecord component.- Returns:
- the value of the
storagePropertiesrecord component
-
errorKickMessage
public net.kyori.adventure.text.Component errorKickMessage()Returns the value of theerrorKickMessagerecord component.- Returns:
- the value of the
errorKickMessagerecord component
-
durationFormats
Returns the value of thedurationFormatsrecord component.- Returns:
- the value of the
durationFormatsrecord component
-