Skip to content

API Reference

811 plugin-facing types across the Hytale server API.

All plugins extend PluginBase and follow a three-phase lifecycle:

public class MyPlugin extends PluginBase {
public MyPlugin(JavaPluginInit init) {
super(init);
// withConfig() must be called here (before setup)
}
@Override
protected void setup() {
// Register commands, events, ECS components, codecs
// Server is not yet fully started
}
@Override
protected void start() {
// Server is running — safe to query world state
}
@Override
protected void shutdown() {
// Clean up resources
// All registrations are auto-unregistered
}
}

PluginBase exposes scoped registries for each subsystem. All registrations are automatically cleaned up when the plugin shuts down.

RegistryAccess MethodDomain
EventRegistrygetEventRegistry()Event listeners
CommandRegistrygetCommandRegistry()Commands
ComponentRegistryProxygetEntityStoreRegistry()ECS components/systems for entities
ComponentRegistryProxygetChunkStoreRegistry()ECS components/systems for chunks
BlockStateRegistrygetBlockStateRegistry()Custom block states
EntityRegistrygetEntityRegistry()Entity type registration
TaskRegistrygetTaskRegistry()Scheduled/recurring tasks
AssetRegistrygetAssetRegistry()Custom asset stores
CodecMapRegistrygetCodecRegistry(...)Codec registration (3 overloads)
ClientFeatureRegistrygetClientFeatureRegistry()Client-side features
Config<T>withConfig(BuilderCodec<T>)Plugin JSON configuration
PackageContents
com.hypixel.hytale.server.core.pluginPlugin base classes, lifecycle, plugin state
com.hypixel.hytale.eventEvent system infrastructure (EventBus, EventRegistry, IEvent, IAsyncEvent)
com.hypixel.hytale.server.core.event.eventsConcrete event types (player, ECS, entity, permissions, lifecycle)
com.hypixel.hytale.server.core.command.systemCommand system (AbstractCommand, CommandContext, argument types)
com.hypixel.hytale.componentECS core (ComponentType, Store, Ref, ComponentRegistry, systems)
com.hypixel.hytale.registryGeneric registry framework (Registry, Registration)
com.hypixel.hytale.codecSerialization framework (Codec, BuilderCodec, KeyedCodec)
com.hypixel.hytale.common.pluginShared plugin types (PluginManifest, PluginIdentifier)
com.hypixel.hytale.server.core.asset.typeAsset type definitions (BlockType, Item, CraftingRecipe)
  • Events — Dual event hierarchy, listener registration, event priority
  • Commands — Builder-pattern command definition, argument types, permissions
  • ECS Components — Archetype-based ECS, component registration, system types
  • ECS Systems — Ticking systems, event systems, lifecycle systems
  • Registries — Registry architecture, plugin-scoped registration
  • JSON Schemas — Data-driven asset definitions via BuilderCodec