Package cz.jeme.bestium.api
Interface Bestium
@NonExtendable
public interface Bestium
The core system for managing custom Minecraft entities.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
Holds all the internal singleton instances. -
Method Summary
Modifier and TypeMethodDescriptionConstructs aNamespacedKey
from the given string key value.static Bestium
Returns the Bestium plugin instance cast asBestium
.static EntityManager
Returns the Bestium entity manager instance, handling the initialization, lifecycle and other logic and helper methods for Bestium entities.static EntityInjector
Returns the main entity injector instance, which handles the registration and management of custom entities within Bestium.static JavaPlugin
Returns the Bestium plugin instance.static PluginSupport
Returns the plugin support instance, providing access to functions for checking the status of external optional dependencies.
-
Method Details
-
getPlugin
Returns the Bestium plugin instance.- Returns:
- the
JavaPlugin
instance - Throws:
IllegalStateException
- if called before the plugin is loaded
-
getBestium
Returns the Bestium plugin instance cast asBestium
.This instance can be safely cast back to a
JavaPlugin
.- Returns:
- the
Bestium
instance - Throws:
IllegalStateException
- if called before the plugin is loaded
-
getInjector
Returns the main entity injector instance, which handles the registration and management of custom entities within Bestium.- Returns:
- the injector instance
- See Also:
-
getPluginSupport
Returns the plugin support instance, providing access to functions for checking the status of external optional dependencies.- Returns:
- the plugin support instance
- Throws:
IllegalStateException
- if called before Bestium plugin is loaded- See Also:
-
getEntityManager
Returns the Bestium entity manager instance, handling the initialization, lifecycle and other logic and helper methods for Bestium entities.- Returns:
- the entity manager instance
- See Also:
-
createKey
Constructs aNamespacedKey
from the given string key value.- Parameters:
key
- the string value of the key. Must follow theKeyPattern.Value
format- Returns:
- a
NamespacedKey
constructed from the given value
-