Record Class BossBar
java.lang.Object
java.lang.Record
net.flectone.pulse.model.util.BossBar
-
Constructor Summary
ConstructorsConstructorDescriptionBossBar(long duration, float health, net.kyori.adventure.bossbar.BossBar.Overlay overlay, net.kyori.adventure.bossbar.BossBar.Color color) BossBar(long duration, float health, net.kyori.adventure.bossbar.BossBar.Overlay overlay, net.kyori.adventure.bossbar.BossBar.Color color, EnumSet<net.kyori.adventure.bossbar.BossBar.Flag> flags) Creates an instance of aBossBarrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.bossbar.BossBar.Colorcolor()Returns the value of thecolorrecord component.longduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.EnumSet<net.kyori.adventure.bossbar.BossBar.Flag> flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.floathealth()Returns the value of thehealthrecord component.net.kyori.adventure.bossbar.BossBar.Overlayoverlay()Returns the value of theoverlayrecord component.final StringtoString()Returns a string representation of this record class.withFlag(net.kyori.adventure.bossbar.BossBar.Flag flag)
-
Constructor Details
-
BossBar
public BossBar(long duration, float health, net.kyori.adventure.bossbar.BossBar.Overlay overlay, net.kyori.adventure.bossbar.BossBar.Color color) -
BossBar
public BossBar(long duration, float health, net.kyori.adventure.bossbar.BossBar.Overlay overlay, net.kyori.adventure.bossbar.BossBar.Color color, EnumSet<net.kyori.adventure.bossbar.BossBar.Flag> flags) Creates an instance of aBossBarrecord class.- Parameters:
duration- the value for thedurationrecord componenthealth- the value for thehealthrecord componentoverlay- the value for theoverlayrecord componentcolor- the value for thecolorrecord componentflags- the value for theflagsrecord component
-
-
Method Details
-
withFlag
-
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. -
duration
public long duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
health
public float health()Returns the value of thehealthrecord component.- Returns:
- the value of the
healthrecord component
-
overlay
public net.kyori.adventure.bossbar.BossBar.Overlay overlay()Returns the value of theoverlayrecord component.- Returns:
- the value of the
overlayrecord component
-
color
public net.kyori.adventure.bossbar.BossBar.Color color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-