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 renderer by name
      Parameters:
      name - name
      Returns:
      optional renderer
    • modelOrNull

      @Nullable public static @Nullable ModelRenderer modelOrNull(@NotNull @NotNull String name)
      Gets model renderer or null by name
      Parameters:
      name - name
      Returns:
      nullable renderer
    • limb

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

      @Nullable public static @Nullable ModelRenderer limbOrNull(@NotNull @NotNull String name)
      Gets player animation renderer or null by name
      Parameters:
      name - name
      Returns:
      nullable 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
    • registry

      @NotNull public static @NotNull Optional<EntityTrackerRegistry> registry(@NotNull @NotNull BaseEntity entity)
      Gets entity registry by entity.
      Parameters:
      entity - entity
      Returns:
      optional registry
    • registryOrNull

      @Nullable public static @Nullable EntityTrackerRegistry registryOrNull(@NotNull @NotNull UUID uuid)
      Gets entity registry by entity's uuid.
      Parameters:
      uuid - uuid
      Returns:
      registry or null
    • registryOrNull

      @Nullable public static @Nullable EntityTrackerRegistry registryOrNull(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Gets entity registry by entity.
      Parameters:
      entity - entity
      Returns:
      registry or null
    • registryOrNull

      @Nullable public static @Nullable EntityTrackerRegistry registryOrNull(@NotNull @NotNull BaseEntity entity)
      Gets entity registry by entity.
      Parameters:
      entity - entity
      Returns:
      registry or null
    • 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
    • modelKeys

      @NotNull public static @NotNull @Unmodifiable Set<String> modelKeys()
      Gets all keys of model
      Returns:
      all model keys
    • limbKeys

      @NotNull public static @NotNull @Unmodifiable Set<String> limbKeys()
      Gets all keys of limb
      Returns:
      all limb keys
    • plugin

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

      @NotNull public static @NotNull NMS nms()
      Gets nms
      Returns:
      nms
    • register

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