Skip to content

PluginBase

Package: com.hypixel.hytale.server.core.plugin

public abstract class PluginBase implements CommandOwner

Abstract base class for all server plugins. Provides lifecycle management (setup, start, shutdown), and registries for commands, events, entities, ECS components/resources, assets, codecs, block states, and tasks. Each plugin has an identifier, manifest, logger, data directory, and state machine.

The plugin progresses through states: NONE -> SETUP -> START -> ENABLED -> SHUTDOWN -> DISABLED. On error, transitions to FAILED.

ModifierReturn TypeSignature
@Nonnull publicStringgetName()
@Nonnull publicHytaleLoggergetLogger()
@Nonnull publicPluginIdentifiergetIdentifier()
@Nonnull publicPluginManifestgetManifest()
@Nonnull publicPathgetDataDirectory()
@Nonnull publicPluginStategetState()
@Nonnull publicClientFeatureRegistrygetClientFeatureRegistry()
@Nonnull publicCommandRegistrygetCommandRegistry()
@Nonnull publicEventRegistrygetEventRegistry()
@Nonnull publicBlockStateRegistrygetBlockStateRegistry()
@Nonnull publicEntityRegistrygetEntityRegistry()
@Nonnull publicTaskRegistrygetTaskRegistry()
@Nonnull publicComponentRegistryProxy<EntityStore>getEntityStoreRegistry()
@Nonnull publicComponentRegistryProxy<ChunkStore>getChunkStoreRegistry()
@Nonnull publicAssetRegistrygetAssetRegistry()
publicbooleanisDisabled()
publicbooleanisEnabled()
@Nonnull public abstractPluginTypegetType()
@Nullable publicCompletableFuture<Void>preLoad()
@Nonnull protected final <T>Config<T>withConfig(@Nonnull BuilderCodec<T> configCodec)
@Nonnull protected final <T>Config<T>withConfig(@Nonnull String name, @Nonnull BuilderCodec<T> configCodec)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.