Class BetterModel

java.lang.Object
kr.toxicity.model.api.BetterModel

public final class BetterModel extends Object
A provider class for BetterModel plugin instance.
  • Field Details

    • IS_FOLIA

      public static final boolean IS_FOLIA
      Check a running platform is Folia.
    • IS_PURPUR

      public static final boolean IS_PURPUR
      Check a running platform is Purpur.
    • IS_PAPER

      public static final boolean IS_PAPER
      Check a running platform is Paper.
  • Method Details

    • config

      @NotNull public static @NotNull BetterModelConfig config()
      Gets config manager
      Returns:
      config
    • model

      @NotNull public static @NotNull Optional<ModelRenderer> model(@NotNull @NotNull String name)
      Gets model render by name
      Parameters:
      name - name
      Returns:
      optional renderer
    • limb

      @NotNull public static @NotNull Optional<ModelRenderer> limb(@NotNull @NotNull String name)
      Gets player animation render by name
      Parameters:
      name - name
      Returns:
      optional renderer
    • player

      @NotNull public static @NotNull Optional<PlayerChannelHandler> player(@NotNull @NotNull UUID uuid)
      Gets player channel by uuid.
      Parameters:
      uuid - uuid
      Returns:
      optional channel
    • registry

      @NotNull public static @NotNull Optional<EntityTrackerRegistry> registry(@NotNull @NotNull UUID uuid)
      Gets entity registry by entity's uuid.
      Parameters:
      uuid - uuid
      Returns:
      optional registry
    • registry

      @NotNull public static @NotNull Optional<EntityTrackerRegistry> registry(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Gets entity registry by entity.
      Parameters:
      entity - entity
      Returns:
      optional registry
    • models

      @NotNull public static @NotNull @Unmodifiable Collection<ModelRenderer> models()
      Gets all models
      Returns:
      all models
    • limbs

      @NotNull public static @NotNull @Unmodifiable Collection<ModelRenderer> limbs()
      Gets all limbs
      Returns:
      all limbs
    • plugin

      @NotNull public static @NotNull BetterModelPlugin plugin()
      Gets plugin instance of BetterModel.
      Returns:
      instance
      See Also:
      • JavaPlugin
    • inst

      @Deprecated @NotNull public static @NotNull BetterModelPlugin inst()
      Deprecated.
    • register

      @Internal public static void register(@NotNull @NotNull BetterModelPlugin instance)
      Sets plugin instance of BetterModel.
      Parameters:
      instance - instance