Record Class ProgressSettings
java.lang.Object
java.lang.Record
dev.despical.mazeengine.config.ProgressSettings
public record ProgressSettings(boolean enabled, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay)
extends Record
Stores the appearance and visibility settings for operation boss bars.
The enabled flag determines whether player actors see a bar. Color and overlay use Adventure's supported boss-bar enums, while MazeProgress supplies the operation title and percentage as work advances.
Configuration reading checks the accepted value types and resolves enum names without case sensitivity. Missing options preserve the standard bar appearance. These settings control presentation and do not change the world operation's block or time budget.
-
Constructor Summary
ConstructorsConstructorDescriptionProgressSettings(boolean enabled, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay) Creates an instance of aProgressSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.bossbar.BossBar.Colorcolor()Returns the value of thecolorrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.kyori.adventure.bossbar.BossBar.Overlayoverlay()Returns the value of theoverlayrecord component.static ProgressSettingsread(org.bukkit.configuration.ConfigurationSection config) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProgressSettings
public ProgressSettings(boolean enabled, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay) Creates an instance of aProgressSettingsrecord class.- Parameters:
enabled- the value for theenabledrecord componentcolor- the value for thecolorrecord componentoverlay- the value for theoverlayrecord component
-
-
Method Details
-
read
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
color
public net.kyori.adventure.bossbar.BossBar.Color color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
overlay
public net.kyori.adventure.bossbar.BossBar.Overlay overlay()Returns the value of theoverlayrecord component.- Returns:
- the value of the
overlayrecord component
-