Record Class BossBarConfig.BossBarData
java.lang.Object
java.lang.Record
dev.despical.tntrun.bossbar.BossBarConfig.BossBarData
- Enclosing class:
BossBarConfig
public static record BossBarConfig.BossBarData(net.kyori.adventure.text.Component title, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay, boolean visible)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBossBarData(net.kyori.adventure.text.Component title, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay, boolean visible) Creates an instance of aBossBarDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.bossbar.BossBar.Colorcolor()Returns the value of thecolorrecord 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.net.kyori.adventure.text.Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.booleanvisible()Returns the value of thevisiblerecord component.
-
Constructor Details
-
BossBarData
public BossBarData(net.kyori.adventure.text.Component title, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay, boolean visible) Creates an instance of aBossBarDatarecord class.- Parameters:
title- the value for thetitlerecord componentcolor- the value for thecolorrecord componentoverlay- the value for theoverlayrecord componentvisible- the value for thevisiblerecord component
-
-
Method Details
-
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. -
title
public net.kyori.adventure.text.Component title()Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord 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
-
visible
public boolean visible()Returns the value of thevisiblerecord component.- Returns:
- the value of the
visiblerecord component
-