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 aValues
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebanSettings
record component.Returns the value of thedefaultUserRules
record component.Returns the value of thedurationFormats
record component.final boolean
Indicates whether some other object is "equal to" this one.net.kyori.adventure.text.Component
Returns the value of theerrorKickMessage
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theheartDropRestrictionActions
record component.Returns the value of theheartItemSettings
record component.Returns the value of thestartingHearts
record component.Returns the value of thestorageProperties
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserGroupRules
record 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 aValues
record class.- Parameters:
startingHearts
- the value for thestartingHearts
record componentdefaultUserRules
- the value for thedefaultUserRules
record componentuserGroupRules
- the value for theuserGroupRules
record componentheartItemSettings
- the value for theheartItemSettings
record componentheartDropRestrictionActions
- the value for theheartDropRestrictionActions
record componentbanSettings
- the value for thebanSettings
record componentstorageProperties
- the value for thestorageProperties
record componenterrorKickMessage
- the value for theerrorKickMessage
record componentdurationFormats
- the value for thedurationFormats
record 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 thestartingHearts
record component.- Returns:
- the value of the
startingHearts
record component
-
defaultUserRules
Returns the value of thedefaultUserRules
record component.- Returns:
- the value of the
defaultUserRules
record component
-
userGroupRules
Returns the value of theuserGroupRules
record component.- Returns:
- the value of the
userGroupRules
record component
-
heartItemSettings
Returns the value of theheartItemSettings
record component.- Returns:
- the value of the
heartItemSettings
record component
-
heartDropRestrictionActions
Returns the value of theheartDropRestrictionActions
record component.- Returns:
- the value of the
heartDropRestrictionActions
record component
-
banSettings
Returns the value of thebanSettings
record component.- Returns:
- the value of the
banSettings
record component
-
storageProperties
Returns the value of thestorageProperties
record component.- Returns:
- the value of the
storageProperties
record component
-
errorKickMessage
public net.kyori.adventure.text.Component errorKickMessage()Returns the value of theerrorKickMessage
record component.- Returns:
- the value of the
errorKickMessage
record component
-
durationFormats
Returns the value of thedurationFormats
record component.- Returns:
- the value of the
durationFormats
record component
-