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 Details Link icon

    • name Link icon

      private final Text name
      The field for the name record component.
    • visible Link icon

      private final boolean visible
      The field for the visible record component.
    • value Link icon

      private final int value
      The field for the value record component.
    • max Link icon

      private final int max
      The field for the max record component.
    • color Link icon

      private final BossBar.Color color
      The field for the color record component.
    • overlay Link icon

      private final BossBar.Style overlay
      The field for the overlay record component.
    • darkenScreen Link icon

      private final boolean darkenScreen
      The field for the darkenScreen record component.
    • playBossMusic Link icon

      private final boolean playBossMusic
      The field for the playBossMusic record component.
    • createWorldFog Link icon

      private final boolean createWorldFog
      The field for the createWorldFog record component.
    • players Link icon

      private final Set<UUID> players
      The field for the players record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<CommandBossBar.Serialized> 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 Link icon

    • Serialized Link icon

      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 Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • name Link icon

      public Text name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • visible Link icon

      public boolean visible()
      Returns the value of the visible record component.
      Returns:
      the value of the visible record component
    • value Link icon

      public int value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • max Link icon

      public int max()
      Returns the value of the max record component.
      Returns:
      the value of the max record component
    • color Link icon

      public BossBar.Color color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • overlay Link icon

      public BossBar.Style overlay()
      Returns the value of the overlay record component.
      Returns:
      the value of the overlay record component
    • darkenScreen Link icon

      public boolean darkenScreen()
      Returns the value of the darkenScreen record component.
      Returns:
      the value of the darkenScreen record component
    • playBossMusic Link icon

      public boolean playBossMusic()
      Returns the value of the playBossMusic record component.
      Returns:
      the value of the playBossMusic record component
    • createWorldFog Link icon

      public boolean createWorldFog()
      Returns the value of the createWorldFog record component.
      Returns:
      the value of the createWorldFog record component
    • players Link icon

      public Set<UUID> players()
      Returns the value of the players record component.
      Returns:
      the value of the players record component