Interface BetterModelBukkit

All Superinterfaces:
kr.toxicity.model.api.BetterModelPlatform, kr.toxicity.model.api.event.ModelEventApplication

public interface BetterModelBukkit extends kr.toxicity.model.api.BetterModelPlatform
Represents the Bukkit-specific platform interface for BetterModel.

This interface extends BetterModelPlatform to provide Bukkit-specific implementations for scheduling and entity adaptation.

Since:
2.0.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface kr.toxicity.model.api.BetterModelPlatform

    kr.toxicity.model.api.BetterModelPlatform.JarType, kr.toxicity.model.api.BetterModelPlatform.ReloadResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    Checks if the server is running on the Folia platform.
    static final boolean
    Checks if the server is running on the Paper platform (or a fork like Purpur/Folia).
    static final boolean
    Checks if the server is running on the Purpur platform.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull BukkitAdapter
    Returns the Bukkit-specific adapter.
    Returns the Bukkit-specific event bus.
    static @NotNull BetterModelBukkit
    Returns the current BetterModelBukkit instance.
    Returns the Bukkit-specific scheduler.

    Methods inherited from interface kr.toxicity.model.api.BetterModelPlatform

    addReloadEndHandler, addReloadStartHandler, config, dataFolder, evaluator, getResource, isSnapshot, jarType, logger, modelManager, nms, playerManager, profileManager, reload, reload, reload, scriptManager, semver, skinManager, version

    Methods inherited from interface kr.toxicity.model.api.event.ModelEventApplication

    isEnabled
  • Field Details

    • IS_FOLIA

      static final boolean IS_FOLIA
      Checks if the server is running on the Folia platform.
      Since:
      2.0.0
    • IS_PURPUR

      static final boolean IS_PURPUR
      Checks if the server is running on the Purpur platform.
      Since:
      2.0.0
    • IS_PAPER

      static final boolean IS_PAPER
      Checks if the server is running on the Paper platform (or a fork like Purpur/Folia).
      Since:
      2.0.0
  • Method Details

    • platform

      @NotNull static @NotNull BetterModelBukkit platform()
      Returns the current BetterModelBukkit instance.
      Returns:
      the current platform instance
      Since:
      2.0.0
    • scheduler

      @NotNull @NotNull BukkitModelScheduler scheduler()
      Returns the Bukkit-specific scheduler.
      Specified by:
      scheduler in interface kr.toxicity.model.api.BetterModelPlatform
      Returns:
      the scheduler
      Since:
      2.0.0
    • adapter

      @NotNull @NotNull BukkitAdapter adapter()
      Returns the Bukkit-specific adapter.
      Specified by:
      adapter in interface kr.toxicity.model.api.BetterModelPlatform
      Returns:
      the adapter
      Since:
      2.0.0
    • eventBus

      @NotNull @NotNull BukkitModelEventBus eventBus()
      Returns the Bukkit-specific event bus.
      Specified by:
      eventBus in interface kr.toxicity.model.api.BetterModelPlatform
      Returns:
      the event bus
      Since:
      2.0.0