Class ShadyPines

java.lang.Object
net.kyori.adventure.util.ShadyPines

public final class ShadyPines extends Object
Various utilities.
Since:
4.0.0
  • Method Details

    • enumSet

      @ScheduledForRemoval(inVersion="5.0.0") @Deprecated @SafeVarargs @NotNull public static <E extends Enum<E>> @NotNull Set<E> enumSet(Class<E> type, E @NotNull ... constants)
      Deprecated.
      for removal since 4.8.0, use MonkeyBars.enumSet(Class, Enum[])
      Creates a set from an array of enum constants.
      Type Parameters:
      E - the enum type
      Parameters:
      type - the enum type
      constants - the enum constants
      Returns:
      the set
      Since:
      4.0.0
    • equals

      public static boolean equals(double a, double b)
      Checks if a is equal to b.
      Parameters:
      a - a double
      b - a double
      Returns:
      true if a is equal to b, otherwise false
      Since:
      4.0.0
    • equals

      public static boolean equals(float a, float b)
      Checks if a is equal to b.
      Parameters:
      a - a float
      b - a float
      Returns:
      true if a is equal to b, otherwise false
      Since:
      4.0.0