Class PluginBase
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
- All Implemented Interfaces:
CommandOwner
- Direct Known Subclasses:
JavaPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AssetRegistryprivate final Stringprivate final BlockStateRegistryprivate final ComponentRegistryProxy<ChunkStore> private final ClientFeatureRegistryprivate final CommandRegistryprivate final Pathprivate final EntityRegistryprivate final ComponentRegistryProxy<EntityStore> private final EventRegistryprivate final PluginIdentifierprivate final com.hypixel.hytale.logger.HytaleLoggerprivate final PluginManifeststatic final MetricsRegistry<PluginBase> private final Stringprivate final CopyOnWriteArrayList<BooleanConsumer> private PluginStateprivate final TaskRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcleanup(boolean shutdown) final String<K,T extends JsonAsset<K>>
CodecMapRegistry.Assets<T, ?> getCodecRegistry(AssetCodecMapCodec<K, T> mapCodec) <V> MapKeyMapRegistry<V> getCodecRegistry(com.hypixel.hytale.codec.lookup.MapKeyMapCodec<V> mapCodec) <T,C extends Codec<? extends T>>
CodecMapRegistry<T, C> getCodecRegistry(StringCodecMapCodec<T, C> mapCodec) com.hypixel.hytale.logger.HytaleLoggergetName()getState()abstract PluginTypegetType()booleanbooleanpreLoad()protected voidsetup()protected voidsetup0()protected voidshutdown()protected voidshutdown0(boolean shutdown) protected voidstart()protected voidstart0()protected final <T> Config<T> withConfig(BuilderCodec<T> configCodec) protected final <T> Config<T> withConfig(String name, BuilderCodec<T> configCodec)
-
Field Details
-
METRICS_REGISTRY
-
logger
@Nonnull private final com.hypixel.hytale.logger.HytaleLogger logger -
identifier
-
manifest
-
dataDirectory
-
configs
-
state
-
notEnabledString
-
shutdownTasks
-
clientFeatureRegistry
-
commandRegistry
-
eventRegistry
-
blockStateRegistry
-
entityRegistry
-
taskRegistry
-
entityStoreRegistry
-
chunkStoreRegistry
-
assetRegistry
-
codecMapRegistries
-
basePermission
-
-
Constructor Details
-
PluginBase
-
-
Method Details
-
withConfig
-
withConfig
@Nonnull protected final <T> Config<T> withConfig(@Nonnull String name, @Nonnull BuilderCodec<T> configCodec) -
preLoad
-
getName
- Specified by:
getNamein interfaceCommandOwner
-
getLogger
@Nonnull public com.hypixel.hytale.logger.HytaleLogger getLogger() -
getIdentifier
-
getManifest
-
getDataDirectory
-
getState
-
getClientFeatureRegistry
-
getCommandRegistry
-
getEventRegistry
-
getBlockStateRegistry
-
getEntityRegistry
-
getTaskRegistry
-
getEntityStoreRegistry
-
getChunkStoreRegistry
-
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
-
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
-