Class ScoreTextComponent

    • Field Detail

      • name

        private final java.lang.String name
      • objective

        private final java.lang.String objective
    • Constructor Detail

      • ScoreTextComponent

        public ScoreTextComponent​(java.lang.String p_i45997_1_,
                                  java.lang.String p_i45997_2_)
      • ScoreTextComponent

        private ScoreTextComponent​(java.lang.String p_i232569_1_,
                                   @Nullable
                                   EntitySelector p_i232569_2_,
                                   java.lang.String p_i232569_3_)
    • Method Detail

      • parseSelector

        @Nullable
        private static EntitySelector parseSelector​(java.lang.String p_240707_0_)
      • getName

        public java.lang.String getName()
      • getObjective

        public java.lang.String getObjective()
      • findTargetName

        private java.lang.String findTargetName​(CommandSource p_240705_1_)
                                         throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getScore

        private java.lang.String getScore​(java.lang.String p_240706_1_,
                                          CommandSource p_240706_2_)
      • equals

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