Class Style

java.lang.Object
net.minecraft.network.chat.Style

public class Style extends Object
  • Field Details

    • EMPTY

      public static final Style EMPTY
    • DEFAULT_FONT

      public static final ResourceLocation DEFAULT_FONT
    • color

      @Nullable final TextColor color
    • bold

      @Nullable final Boolean bold
    • italic

      @Nullable final Boolean italic
    • underlined

      @Nullable final Boolean underlined
    • strikethrough

      @Nullable final Boolean strikethrough
    • obfuscated

      @Nullable final Boolean obfuscated
    • clickEvent

      @Nullable final ClickEvent clickEvent
    • hoverEvent

      @Nullable final HoverEvent hoverEvent
    • insertion

      @Nullable final String insertion
    • font

      @Nullable final ResourceLocation font
  • Constructor Details

  • Method Details

    • getColor

      @Nullable public TextColor getColor()
    • isBold

      public boolean isBold()
    • isItalic

      public boolean isItalic()
    • isStrikethrough

      public boolean isStrikethrough()
    • isUnderlined

      public boolean isUnderlined()
    • isObfuscated

      public boolean isObfuscated()
    • isEmpty

      public boolean isEmpty()
    • getClickEvent

      @Nullable public ClickEvent getClickEvent()
    • getHoverEvent

      @Nullable public HoverEvent getHoverEvent()
    • getInsertion

      @Nullable public String getInsertion()
    • getFont

      public ResourceLocation getFont()
    • withColor

      public Style withColor(@Nullable TextColor p_131149_)
    • withColor

      public Style withColor(@Nullable ChatFormatting p_131141_)
    • withColor

      public Style withColor(int p_178521_)
    • withBold

      public Style withBold(@Nullable Boolean p_131137_)
    • withItalic

      public Style withItalic(@Nullable Boolean p_131156_)
    • withUnderlined

      public Style withUnderlined(@Nullable Boolean p_131163_)
    • withStrikethrough

      public Style withStrikethrough(@Nullable Boolean p_178523_)
    • withObfuscated

      public Style withObfuscated(@Nullable Boolean p_178525_)
    • setUnderlined

      public Style setUnderlined(@Nullable Boolean underlined)
    • setStrikethrough

      public Style setStrikethrough(@Nullable Boolean strikethrough)
    • setObfuscated

      public Style setObfuscated(@Nullable Boolean obfuscated)
    • withClickEvent

      public Style withClickEvent(@Nullable ClickEvent p_131143_)
    • withHoverEvent

      public Style withHoverEvent(@Nullable HoverEvent p_131145_)
    • withInsertion

      public Style withInsertion(@Nullable String p_131139_)
    • withFont

      public Style withFont(@Nullable ResourceLocation p_131151_)
    • applyFormat

      public Style applyFormat(ChatFormatting p_131158_)
    • applyLegacyFormat

      public Style applyLegacyFormat(ChatFormatting p_131165_)
    • applyFormats

      public Style applyFormats(ChatFormatting... p_131153_)
    • applyTo

      public Style applyTo(Style p_131147_)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object p_131175_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object