Skip to content

InstancesPlugin

Package: com.hypixel.hytale.builtin.instances

public class InstancesPlugin extends JavaPlugin
ModifierTypeName
private staticInstancesPlugininstance
public static finalStringINSTANCE_PREFIX
public static finalStringCONFIG_FILENAME
private ResourceType<ChunkStore,InstanceDataResource>instanceDataResourceType
private ComponentType<EntityStore,InstanceEntityConfig>instanceEntityConfigComponentType
private ComponentType<ChunkStore,InstanceBlock>instanceBlockComponentType
private ComponentType<ChunkStore,ConfigurableInstanceBlock>configurableInstanceBlockComponentType
ModifierReturn TypeSignature
public staticInstancesPluginget()
@Override protectedvoidsetup()
@Nonnull publicCompletableFuture<World>spawnInstance(@Nonnull String name, @Nonnull World forWorld, @Nonnull Transform returnPoint)
@Nonnull publicCompletableFuture<World>spawnInstance(@Nonnull String name, @Nullable String worldName, @Nonnull World forWorld, @Nonnull Transform returnPoint)
public staticvoidteleportPlayerToLoadingInstance( @Nonnull Ref<EntityStore> entityRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull CompletableFuture<World> worldFuture, @Nullable Transform overrideReturn )
public staticvoidteleportPlayerToInstance( @Nonnull Ref<EntityStore> playerRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull World targetWorld, @Nullable Transform overrideReturn )
public staticCompletableFuture<Void>exitInstance(@Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
public staticvoidsafeRemoveInstance(@Nonnull String worldName)
public staticvoidsafeRemoveInstance(@Nonnull UUID worldUUID)
public staticvoidsafeRemoveInstance(@Nullable World instanceWorld)
@Nonnull public staticPathgetInstanceAssetPath(@Nonnull String name)
public staticbooleandoesInstanceAssetExist(@Nonnull String name)
@Nonnull public staticCompletableFuture<World>loadInstanceAssetForEdit(@Nonnull String name)
@Nonnull publicList<String>getInstanceAssets()
@Nonnull publicFileVisitResultpreVisitDirectory(@Nonnull Path dir, @Nonnull BasicFileAttributes attrs)
private staticvoidonPlayerConnect(@Nonnull PlayerConnectEvent event)
private staticvoidonPlayerAddToWorld(@Nonnull AddPlayerToWorldEvent event)
private staticvoidonPlayerReady(@Nonnull PlayerReadyEvent event)
private staticvoidshowInstanceDiscovery( @Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull UUID instanceUuid, @Nonnull InstanceDiscoveryConfig discoveryConfig )
private staticvoidonPlayerDrainFromWorld(@Nonnull DrainPlayerFromWorldEvent event)
private staticvoidgenerateSchema(@Nonnull GenerateSchemaEvent event)
privatevoidvalidateInstanceAssets(@Nonnull LoadAssetEvent event)
@Nonnull public staticStringsafeName(@Nonnull String name)
@Nonnull publicResourceType<ChunkStore, InstanceDataResource>getInstanceDataResourceType()
@Nonnull publicComponentType<EntityStore, InstanceEntityConfig>getInstanceEntityConfigComponentType()
@Nonnull publicComponentType<ChunkStore, InstanceBlock>getInstanceBlockComponentType()
@Nonnull publicComponentType<ChunkStore, ConfigurableInstanceBlock>getConfigurableInstanceBlockComponentType()
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.