Class PluginBase

java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
All Implemented Interfaces:
CommandOwner
Direct Known Subclasses:
JavaPlugin

public abstract class PluginBase extends Object implements CommandOwner
  • Field Details

  • Constructor Details

    • PluginBase

      public PluginBase(@Nonnull PluginInit init)
  • Method Details

    • withConfig

      @Nonnull protected final <T> Config<T> withConfig(@Nonnull BuilderCodec<T> configCodec)
    • withConfig

      @Nonnull protected final <T> Config<T> withConfig(@Nonnull String name, @Nonnull BuilderCodec<T> configCodec)
    • preLoad

      @Nullable public CompletableFuture<Void> preLoad()
    • getName

      @Nonnull public String getName()
      Specified by:
      getName in interface CommandOwner
    • getLogger

      @Nonnull public com.hypixel.hytale.logger.HytaleLogger getLogger()
    • getIdentifier

      @Nonnull public PluginIdentifier getIdentifier()
    • getManifest

      @Nonnull public PluginManifest getManifest()
    • getDataDirectory

      @Nonnull public Path getDataDirectory()
    • getState

      @Nonnull public PluginState getState()
    • getClientFeatureRegistry

      @Nonnull public ClientFeatureRegistry getClientFeatureRegistry()
    • getCommandRegistry

      @Nonnull public CommandRegistry getCommandRegistry()
    • getEventRegistry

      @Nonnull public EventRegistry getEventRegistry()
    • getBlockStateRegistry

      @Nonnull public BlockStateRegistry getBlockStateRegistry()
    • getEntityRegistry

      @Nonnull public EntityRegistry getEntityRegistry()
    • getTaskRegistry

      @Nonnull public TaskRegistry getTaskRegistry()
    • getEntityStoreRegistry

      @Nonnull public ComponentRegistryProxy<EntityStore> getEntityStoreRegistry()
    • getChunkStoreRegistry

      @Nonnull public ComponentRegistryProxy<ChunkStore> getChunkStoreRegistry()
    • getAssetRegistry

      @Nonnull public AssetRegistry getAssetRegistry()
    • getCodecRegistry

      @Nonnull public <T, C extends Codec<? extends T>> CodecMapRegistry<T,C> getCodecRegistry(@Nonnull StringCodecMapCodec<T,C> mapCodec)
    • getCodecRegistry

      @Nonnull public <K, T extends JsonAsset<K>> CodecMapRegistry.Assets<T,?> getCodecRegistry(@Nonnull AssetCodecMapCodec<K,T> mapCodec)
    • getCodecRegistry

      @Nonnull public <V> MapKeyMapRegistry<V> getCodecRegistry(@Nonnull com.hypixel.hytale.codec.lookup.MapKeyMapCodec<V> mapCodec)
    • getBasePermission

      @Nonnull public final String getBasePermission()
    • isDisabled

      public boolean isDisabled()
    • isEnabled

      public boolean isEnabled()
    • setup0

      protected void setup0()
    • setup

      protected void setup()
    • start0

      protected void start0()
    • start

      protected void start()
    • shutdown0

      protected void shutdown0(boolean shutdown)
    • shutdown

      protected void shutdown()
    • cleanup

      void cleanup(boolean shutdown)
    • getType

      @Nonnull public abstract PluginType getType()