Class CreativeHubPlugin
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.builtin.creativehub.CreativeHubPlugin
- All Implemented Interfaces:
CommandOwner
-
Field Summary
FieldsFields inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearHubInstance(UUID parentWorldUuid) static CreativeHubPluginget()getActiveHubInstance(World parentWorld) getOrSpawnHubInstance(World parentWorld, CreativeHubWorldConfig hubConfig, Transform returnPoint) private static voidprivate static voidprivate static voidonWorldRemove(RemoveWorldEvent event) protected voidsetup()spawnPermanentWorldFromTemplate(String instanceAssetName, String permanentWorldName) Methods inherited from class com.hypixel.hytale.server.core.plugin.JavaPlugin
getClassLoader, getFile, getType, start0Methods inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
getAssetRegistry, getBasePermission, getBlockStateRegistry, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad, setup0, shutdown, shutdown0, start, withConfig, withConfig
-
Field Details
-
MESSAGE_HUB_RETURN_HINT
-
instance
-
activeHubInstances
-
creativeHubEntityConfigComponentType
-
-
Constructor Details
-
CreativeHubPlugin
-
-
Method Details
-
get
-
getOrSpawnHubInstance
@Nonnull public World getOrSpawnHubInstance(@Nonnull World parentWorld, @Nonnull CreativeHubWorldConfig hubConfig, @Nonnull Transform returnPoint) -
getActiveHubInstance
-
clearHubInstance
-
spawnPermanentWorldFromTemplate
@Nonnull public CompletableFuture<World> spawnPermanentWorldFromTemplate(@Nonnull String instanceAssetName, @Nonnull String permanentWorldName) -
getCreativeHubEntityConfigComponentType
@Nonnull public ComponentType<EntityStore,CreativeHubEntityConfig> getCreativeHubEntityConfigComponentType() -
setup
protected void setup()- Overrides:
setupin classPluginBase
-
onWorldRemove
-
onPlayerConnect
-
onPlayerAddToWorld
-