Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- preLoad()
- getName()
- getLogger()
- getIdentifier()
- getManifest()
- getDataDirectory()
- getState()
- getClientFeatureRegistry()
- getCommandRegistry()
- getEventRegistry()
- getEntityRegistry()
- getTaskRegistry()
- getEntityStoreRegistry()
- getChunkStoreRegistry()
- getAssetRegistry()
- getCodecRegistry(StringCodecMapCodec)
- getCodecRegistry(AssetCodecMapCodec)
- getCodecRegistry(MapKeyMapCodec)
- getBasePermission()
- isDisabled()
- isEnabled()
- getType()
Class PluginBase
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
- All Implemented Interfaces:
CommandOwner
- Direct Known Subclasses:
JavaPlugin
Represents a single plugin instance, extended by specific plugin types
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MetricsRegistry<PluginBase> Metrics specifically associated with plugins -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String<K, T extends JsonAsset<K>>
CodecMapRegistry.Assets<T, ?> getCodecRegistry(AssetCodecMapCodec<K, T> mapCodec) Returns the codec registry for the given asset codec from this plugin<V> MapKeyMapRegistry<V> getCodecRegistry(MapKeyMapCodec<V> mapCodec) Returns the codec registry for the given map key codec from this plugin<T, C extends Codec<? extends T>>
CodecMapRegistry<T, C> getCodecRegistry(StringCodecMapCodec<T, C> mapCodec) Returns the codec registry for the given string codec from this plugingetName()getState()abstract PluginTypegetType()booleanbooleanpreLoad()
-
Field Details
-
METRICS_REGISTRY
Metrics specifically associated with pluginsWe don't include configs to avoid dumping possibly sensitive config, plugin makers can always add support themselves
-
-
Constructor Details
-
PluginBase
Default Constructor for aPluginBaseinstance- Parameters:
init- The plugin initialization step for this plugin
-
-
Method Details
-
preLoad
-
getName
- Specified by:
getNamein interfaceCommandOwner
-
getLogger
- Returns:
- the logger associated with this plugin
-
getIdentifier
- Returns:
- the identifier for this plugin
-
getManifest
- Returns:
- the manifest for this plugin
-
getDataDirectory
- Returns:
- The data folder path for this plugin
-
getState
- Returns:
- The current state of this plugin
-
getClientFeatureRegistry
- Returns:
- the client feature registry for this plugin
-
getCommandRegistry
- Returns:
- the command registry for this plugin
-
getEventRegistry
- Returns:
- the event registry for this plugin
-
getEntityRegistry
- Returns:
- The entity registry for this plugin
-
getTaskRegistry
- Returns:
- the task registry for this plugin
-
getEntityStoreRegistry
- Returns:
- the entity store component registry proxy for this plugin
-
getChunkStoreRegistry
- Returns:
- the chunk store component registry for this plugin
-
getAssetRegistry
- Returns:
- The asset registry for this plugin
-
getCodecRegistry
@Nonnull public <T, C extends Codec<? extends T>> CodecMapRegistry<T,C> getCodecRegistry(@Nonnull StringCodecMapCodec<T, C> mapCodec) Returns the codec registry for the given string codec from this plugin- Type Parameters:
T- The codec typeC- The codec type- Parameters:
mapCodec- The map registry to return- Returns:
- the affiliated codec registry
-
getCodecRegistry
@Nonnull public <K, T extends JsonAsset<K>> CodecMapRegistry.Assets<T,?> getCodecRegistry(@Nonnull AssetCodecMapCodec<K, T> mapCodec) Returns the codec registry for the given asset codec from this plugin- Type Parameters:
K- The codec typeT- The Json asset type- Parameters:
mapCodec- The map registry to return- Returns:
- the affiliated codec registry
-
getCodecRegistry
Returns the codec registry for the given map key codec from this plugin- Type Parameters:
V- The codec type- Parameters:
mapCodec- The map registry to return- Returns:
- the affiliated codec registry
-
getBasePermission
- Returns:
- the base permission for this plugin
-
isDisabled
public boolean isDisabled()- Returns:
trueif this plugin is in a disabled state,falseotherwise
-
isEnabled
public boolean isEnabled()- Returns:
trueif this plugin is in an enabled state,falseotherwise
-
getType
- Returns:
- the plugin type for this plugin
-