Class Style


  • public class Style
    extends java.lang.Object
    • Field Detail

      • EMPTY

        public static final Style EMPTY
      • color

        @Nullable
        private final Color color
      • bold

        @Nullable
        private final java.lang.Boolean bold
      • italic

        @Nullable
        private final java.lang.Boolean italic
      • underlined

        @Nullable
        private final java.lang.Boolean underlined
      • strikethrough

        @Nullable
        private final java.lang.Boolean strikethrough
      • obfuscated

        @Nullable
        private final java.lang.Boolean obfuscated
      • clickEvent

        @Nullable
        private final ClickEvent clickEvent
      • hoverEvent

        @Nullable
        private final HoverEvent hoverEvent
      • insertion

        @Nullable
        private final java.lang.String insertion
    • Constructor Detail

      • Style

        private Style​(@Nullable
                      Color p_i232570_1_,
                      @Nullable
                      java.lang.Boolean p_i232570_2_,
                      @Nullable
                      java.lang.Boolean p_i232570_3_,
                      @Nullable
                      java.lang.Boolean p_i232570_4_,
                      @Nullable
                      java.lang.Boolean p_i232570_5_,
                      @Nullable
                      java.lang.Boolean p_i232570_6_,
                      @Nullable
                      ClickEvent p_i232570_7_,
                      @Nullable
                      HoverEvent p_i232570_8_,
                      @Nullable
                      java.lang.String p_i232570_9_,
                      @Nullable
                      ResourceLocation p_i232570_10_)
    • Method Detail

      • getColor

        @Nullable
        public Color 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 java.lang.String getInsertion()
      • withColor

        public Style withColor​(@Nullable
                               Color p_240718_1_)
      • withBold

        public Style withBold​(@Nullable
                              java.lang.Boolean p_240713_1_)
      • withItalic

        public Style withItalic​(@Nullable
                                java.lang.Boolean p_240722_1_)
      • withUnderlined

        public Style withUnderlined​(@Nullable
                                    java.lang.Boolean p_244282_1_)
      • setUnderlined

        public Style setUnderlined​(@Nullable
                                   java.lang.Boolean underlined)
      • setStrikethrough

        public Style setStrikethrough​(@Nullable
                                      java.lang.Boolean strikethrough)
      • setObfuscated

        public Style setObfuscated​(@Nullable
                                   java.lang.Boolean obfuscated)
      • withClickEvent

        public Style withClickEvent​(@Nullable
                                    ClickEvent p_240715_1_)
      • withHoverEvent

        public Style withHoverEvent​(@Nullable
                                    HoverEvent p_240716_1_)
      • withInsertion

        public Style withInsertion​(@Nullable
                                   java.lang.String p_240714_1_)
      • applyTo

        public Style applyTo​(Style p_240717_1_)
      • toString

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

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object