Package net.minecraft.entity.boss
Record Class CommandBossBar.Serialized
java.lang.Object
java.lang.Record
net.minecraft.entity.boss.CommandBossBar.Serialized
- Record Components:
name
-visible
-value
-max
-color
-overlay
-darkenScreen
-playBossMusic
-createWorldFog
-players
-
- Enclosing class:
CommandBossBar
public static record CommandBossBar.Serialized(Text name, boolean visible, int value, int max, BossBar.Color color, BossBar.Style overlay, boolean darkenScreen, boolean playBossMusic, boolean createWorldFog, Set<UUID> players)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/boss/CommandBossBar$Serialized
intermediary net/minecraft/class_3002$class_10765
official amt$a
named name
intermediary comp_3673
official b
named visible
intermediary comp_3674
official c
named value
intermediary comp_3675
official d
named max
intermediary comp_3676
official e
named color
intermediary comp_3677
official f
named overlay
intermediary comp_3678
official g
named darkenScreen
intermediary comp_3679
official h
named playBossMusic
intermediary comp_3680
official i
named createWorldFog
intermediary comp_3681
official j
named players
intermediary comp_3682
official k
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<CommandBossBar.Serialized> private final BossBar.Color
The field for thecolor
record component.private final boolean
The field for thecreateWorldFog
record component.private final boolean
The field for thedarkenScreen
record component.private final int
The field for themax
record component.private final Text
The field for thename
record component.private final BossBar.Style
The field for theoverlay
record component.private final boolean
The field for theplayBossMusic
record component.The field for theplayers
record component.private final int
The field for thevalue
record component.private final boolean
The field for thevisible
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSerialized
(Text text, boolean bool, int int2, int int3, BossBar.Color color, BossBar.Style style, boolean bool2, boolean bool3, boolean bool4, Set<UUID> set) -
Method Summary
Modifier and TypeMethodDescriptioncolor()
Returns the value of thecolor
record component.boolean
Returns the value of thecreateWorldFog
record component.boolean
Returns the value of thedarkenScreen
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
max()
Returns the value of themax
record component.name()
Returns the value of thename
record component.overlay()
Returns the value of theoverlay
record component.boolean
Returns the value of theplayBossMusic
record component.players()
Returns the value of theplayers
record component.final String
toString()
Returns a string representation of this record class.int
value()
Returns the value of thevalue
record component.boolean
visible()
Returns the value of thevisible
record component.
-
Field Details
-
name
The field for thename
record component. -
visible
private final boolean visibleThe field for thevisible
record component. -
value
private final int valueThe field for thevalue
record component. -
max
private final int maxThe field for themax
record component. -
color
The field for thecolor
record component. -
overlay
The field for theoverlay
record component. -
darkenScreen
private final boolean darkenScreenThe field for thedarkenScreen
record component. -
playBossMusic
private final boolean playBossMusicThe field for theplayBossMusic
record component. -
createWorldFog
private final boolean createWorldFogThe field for thecreateWorldFog
record component. -
players
The field for theplayers
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/entity/boss/CommandBossBar$Serialized;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56603
Lnet/minecraft/class_3002$class_10765;field_56603:Lcom/mojang/serialization/Codec;
official a
Lamt$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Serialized
public Serialized(Text text, boolean bool, int int2, int int3, BossBar.Color color, BossBar.Style style, boolean bool2, boolean bool3, boolean bool4, Set<UUID> set)
-
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
visible
public boolean visible()Returns the value of thevisible
record component.- Returns:
- the value of the
visible
record component
-
value
public int value()Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
max
public int max()Returns the value of themax
record component.- Returns:
- the value of the
max
record component
-
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-
overlay
Returns the value of theoverlay
record component.- Returns:
- the value of the
overlay
record component
-
darkenScreen
public boolean darkenScreen()Returns the value of thedarkenScreen
record component.- Returns:
- the value of the
darkenScreen
record component
-
playBossMusic
public boolean playBossMusic()Returns the value of theplayBossMusic
record component.- Returns:
- the value of the
playBossMusic
record component
-
createWorldFog
public boolean createWorldFog()Returns the value of thecreateWorldFog
record component.- Returns:
- the value of the
createWorldFog
record component
-
players
Returns the value of theplayers
record component.- Returns:
- the value of the
players
record component
-