Enum FactionTag

  • All Implemented Interfaces:
    Tag, java.io.Serializable, java.lang.Comparable<FactionTag>, java.lang.constant.Constable

    public enum FactionTag
    extends java.lang.Enum<FactionTag>
    implements Tag
    • Method Detail

      • values

        public static FactionTag[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FactionTag valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • parse

        public static java.lang.String parse​(java.lang.String text,
                                             Faction faction,
                                             FPlayer player)
      • parse

        public static java.lang.String parse​(java.lang.String text,
                                             Faction faction)
      • getTag

        public java.lang.String getTag()
        Description copied from interface: Tag
        Gets the Tag's string representation.
        Specified by:
        getTag in interface Tag
        Returns:
        tag
      • foundInString

        public boolean foundInString​(java.lang.String test)
        Description copied from interface: Tag
        Gets if the Tag can be found in the given String.
        Specified by:
        foundInString in interface Tag
        Parameters:
        test - string to test
        Returns:
        true if the tag is found in this string
      • replace

        public java.lang.String replace​(java.lang.String text,
                                        Faction faction,
                                        FPlayer player)
      • replace

        public java.lang.String replace​(java.lang.String text,
                                        Faction faction)