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$Serializedintermediary net/minecraft/class_3002$class_10765official amt$anamed nameintermediary comp_3673official bnamed visibleintermediary comp_3674official cnamed valueintermediary comp_3675official dnamed maxintermediary comp_3676official enamed colorintermediary comp_3677official fnamed overlayintermediary comp_3678official gnamed darkenScreenintermediary comp_3679official hnamed playBossMusicintermediary comp_3680official inamed createWorldFogintermediary comp_3681official jnamed playersintermediary comp_3682official k
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CommandBossBar.Serialized> private final BossBar.ColorThe field for thecolorrecord component.private final booleanThe field for thecreateWorldFogrecord component.private final booleanThe field for thedarkenScreenrecord component.private final intThe field for themaxrecord component.private final TextThe field for thenamerecord component.private final BossBar.StyleThe field for theoverlayrecord component.private final booleanThe field for theplayBossMusicrecord component.The field for theplayersrecord component.private final intThe field for thevaluerecord component.private final booleanThe field for thevisiblerecord 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 thecolorrecord component.booleanReturns the value of thecreateWorldFogrecord component.booleanReturns the value of thedarkenScreenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmax()Returns the value of themaxrecord component.name()Returns the value of thenamerecord component.overlay()Returns the value of theoverlayrecord component.booleanReturns the value of theplayBossMusicrecord component.players()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.booleanvisible()Returns the value of thevisiblerecord component.
-
Field Details
-
name
The field for thenamerecord component. -
visible
private final boolean visibleThe field for thevisiblerecord component. -
value
private final int valueThe field for thevaluerecord component. -
max
private final int maxThe field for themaxrecord component. -
color
The field for thecolorrecord component. -
overlay
The field for theoverlayrecord component. -
darkenScreen
private final boolean darkenScreenThe field for thedarkenScreenrecord component. -
playBossMusic
private final boolean playBossMusicThe field for theplayBossMusicrecord component. -
createWorldFog
private final boolean createWorldFogThe field for thecreateWorldFogrecord component. -
players
The field for theplayersrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/boss/CommandBossBar$Serialized;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56603Lnet/minecraft/class_3002$class_10765;field_56603:Lcom/mojang/serialization/Codec;official aLamt$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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
visible
public boolean visible()Returns the value of thevisiblerecord component.- Returns:
- the value of the
visiblerecord component
-
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
max
public int max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
overlay
Returns the value of theoverlayrecord component.- Returns:
- the value of the
overlayrecord component
-
darkenScreen
public boolean darkenScreen()Returns the value of thedarkenScreenrecord component.- Returns:
- the value of the
darkenScreenrecord component
-
playBossMusic
public boolean playBossMusic()Returns the value of theplayBossMusicrecord component.- Returns:
- the value of the
playBossMusicrecord component
-
createWorldFog
public boolean createWorldFog()Returns the value of thecreateWorldFogrecord component.- Returns:
- the value of the
createWorldFogrecord component
-
players
Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-