Class InstancesPlugin
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.builtin.instances.InstancesPlugin
- All Implemented Interfaces:
CommandOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate static InstancesPluginstatic final Stringprivate ComponentType<ChunkStore, InstanceBlock> private ResourceType<ChunkStore, InstanceDataResource> private ComponentType<EntityStore, InstanceEntityConfig> Fields inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandoesInstanceAssetExist(String name) static voidexitInstance(Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) private static voidstatic InstancesPluginget()static PathgetInstanceAssetPath(String name) private WorldConfiglambda$spawnInstance$0(UUID uuid, String name, World forWorld, Transform returnPoint, String finalWorldKey, Path assetPath, Path worldPath, WorldConfig config) private static CompletionStagelambda$spawnInstance$2(Universe universe, String finalWorldKey, Path worldPath, WorldConfig config) static CompletableFuture<World> private static voidprivate static voidprivate static voidprivate static voidonPlayerReady(PlayerReadyEvent event) static Stringstatic voidsafeRemoveInstance(World instanceWorld) static voidsafeRemoveInstance(String worldName) static voidsafeRemoveInstance(UUID worldUUID) protected voidsetup()private static voidshowInstanceDiscovery(Ref<EntityStore> ref, Store<EntityStore> store, UUID instanceUuid, InstanceDiscoveryConfig discoveryConfig) spawnInstance(String name, World forWorld, Transform returnPoint) spawnInstance(String name, String worldName, World forWorld, Transform returnPoint) static voidteleportPlayerToInstance(Ref<EntityStore> playerRef, ComponentAccessor<EntityStore> componentAccessor, World targetWorld, Transform overrideReturn) static voidteleportPlayerToLoadingInstance(Ref<EntityStore> entityRef, ComponentAccessor<EntityStore> componentAccessor, CompletableFuture<World> worldFuture, Transform overrideReturn) private voidMethods 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
-
instance
-
INSTANCE_PREFIX
- See Also:
-
CONFIG_FILENAME
- See Also:
-
instanceDataResourceType
-
instanceEntityConfigComponentType
-
instanceBlockComponentType
-
configurableInstanceBlockComponentType
-
-
Constructor Details
-
InstancesPlugin
-
-
Method Details
-
get
-
setup
protected void setup()- Overrides:
setupin classPluginBase
-
spawnInstance
@Nonnull public CompletableFuture<World> spawnInstance(@Nonnull String name, @Nonnull World forWorld, @Nonnull Transform returnPoint) -
spawnInstance
-
teleportPlayerToLoadingInstance
public static void teleportPlayerToLoadingInstance(@Nonnull Ref<EntityStore> entityRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull CompletableFuture<World> worldFuture, @Nullable Transform overrideReturn) -
teleportPlayerToInstance
public static void teleportPlayerToInstance(@Nonnull Ref<EntityStore> playerRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull World targetWorld, @Nullable Transform overrideReturn) -
exitInstance
public static void exitInstance(@Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
safeRemoveInstance
-
safeRemoveInstance
-
safeRemoveInstance
-
getInstanceAssetPath
-
doesInstanceAssetExist
-
loadInstanceAssetForEdit
-
getInstanceAssets
-
onPlayerConnect
-
onPlayerAddToWorld
-
onPlayerReady
-
showInstanceDiscovery
private static void showInstanceDiscovery(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull UUID instanceUuid, @Nonnull InstanceDiscoveryConfig discoveryConfig) -
onPlayerDrainFromWorld
-
generateSchema
-
validateInstanceAssets
-
safeName
-
getInstanceDataResourceType
-
getInstanceEntityConfigComponentType
@Nonnull public ComponentType<EntityStore,InstanceEntityConfig> getInstanceEntityConfigComponentType() -
getInstanceBlockComponentType
-
getConfigurableInstanceBlockComponentType
@Nonnull public ComponentType<ChunkStore,ConfigurableInstanceBlock> getConfigurableInstanceBlockComponentType() -
lambda$spawnInstance$2
private static CompletionStage lambda$spawnInstance$2(Universe universe, String finalWorldKey, Path worldPath, WorldConfig config) -
lambda$spawnInstance$0
private WorldConfig lambda$spawnInstance$0(UUID uuid, String name, World forWorld, Transform returnPoint, String finalWorldKey, Path assetPath, Path worldPath, WorldConfig config) throws IOException - Throws:
IOException
-