Enum FairyRing

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FairyRing>

    public enum FairyRing
    extends java.lang.Enum<FairyRing>
    • Method Detail

      • values

        public static FairyRing[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FairyRing c : FairyRing.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FairyRing 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
      • isPreviousDestination

        public boolean isPreviousDestination()
      • select

        public boolean select()
        Returns:
        true if the code combination is selected and the confirm button is pressed.
      • byCode

        @Nullable
        public static @Nullable FairyRing byCode​(@NonNull
                                                 @NonNull java.lang.String code)
        Look up the FairyRing instance represented by the provided code.
      • confirm

        public static boolean confirm()
        Presses the "Confirm" button on the combination configuration screen.
      • isConfigurationOpen

        public static boolean isConfigurationOpen()
        Whether the combination configuration screen is open.
      • getNearestObject

        @Nullable
        public static @Nullable GameObject getNearestObject()
        Returns the nearest Fairy ring GameObject, if one is available.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<FairyRing>