Class Geyser

java.lang.Object
org.geysermc.api.Geyser

@NonNull public class Geyser extends Object
General API class for Geyser.
  • Constructor Details

    • Geyser

      public Geyser()
  • Method Details

    • api

      public static GeyserApiBase api()
      Returns the base api.
      Returns:
      the base api
    • api

      public static <T extends GeyserApiBase> T api(@NonNull Class<T> apiClass)
      Returns the api of the given type.
      Type Parameters:
      T - the type
      Parameters:
      apiClass - the api class
      Returns:
      the api of the given type
    • set

      public static void set(@NonNull GeyserApiBase api)
      Registers the given api type. The api cannot be registered if registered() is true as an api has already been specified.
      Parameters:
      api - the api
    • registered

      public static boolean registered()
      Gets if the api has been registered and is ready for usage.
      Returns:
      if the api has been registered