HubPortalInteraction

public class HubPortalInteraction extends SimpleInstantInteraction

Class HubPortalInteraction. Provides hubportalinteraction functionality for the Hytale server.

java.lang.Object > SimpleInstantInteraction > HubPortalInteraction

Field Summary

worldName

private String worldName

Field worldName.

worldGenType

private String worldGenType

Field worldGenType.

instanceTemplate

private String instanceTemplate

Field instanceTemplate.

commandBuffer

final CommandBuffer commandBuffer

Field commandBuffer.

ref

final Ref ref

Field ref.

playerComponent

final Player playerComponent

Field playerComponent.

archetype

final Archetype archetype

Field archetype.

currentWorld

final World currentWorld

Field currentWorld.

universe

final Universe universe

Field universe.

targetWorld

final World targetWorld

Field targetWorld.

worldData

final PlayerWorldData worldData

Field worldData.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

spawnProvider

final ISpawnProvider spawnProvider

Field spawnProvider.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

originalPosition

final Transform originalPosition

Field originalPosition.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

playerUUID

final UUID playerUUID

Field playerUUID.

hubEntityConfig

final CreativeHubEntityConfig hubEntityConfig

Field hubEntityConfig.

obj

final PlayerRef obj

Field obj.

spawnPoint

final Transform spawnPoint

Field spawnPoint.

parentWorld

final World parentWorld

Field parentWorld.

parentHubConfig

final CreativeHubWorldConfig parentHubConfig

Field parentHubConfig.

hubInstance

final World hubInstance

Field hubInstance.

defaultWorld

final World defaultWorld

Field defaultWorld.

Method Detail

getWaitForDataFrom

public WaitForDataFrom getWaitForDataFrom ()

Method getWaitForDataFrom.

firstRun

Method firstRun.

Parameters:
@Nonnull final InteractionType type
@Nonnull final InteractionContext context
@Nonnull final CooldownHandler cooldownHandler

if

public else if (universe.isWorldLoadable(this.worldName)

Method if.

Parameters:
universe.isWorldLoadable(this.worldName universe.isWorldLoadable(this.worldName

teleportToLoadedWorld

private void teleportToLoadedWorld (@Nonnull final Ref playerRef, @Nonnull final ComponentAccessor componentAccessor, @Nonnull final World targetWorld, @Nonnull final Player playerComponent)

Method teleportToLoadedWorld.

Parameters:
@Nonnull final Ref playerRef
@Nonnull final ComponentAccessor componentAccessor
@Nonnull final World targetWorld
@Nonnull final Player playerComponent

Transform

public new Transform ()

Method Transform.

Teleport

public new Teleport (targetWorld, spawnPoint)

Method Teleport.

Parameters:
targetWorld targetWorld
spawnPoint spawnPoint

teleportToLoadingWorld

private void teleportToLoadingWorld (@Nonnull final Ref playerRef, @Nonnull final ComponentAccessor componentAccessor, @Nonnull final CompletableFuture worldFuture, @Nonnull final World originalWorld, @Nonnull final Player playerComponent)

Method teleportToLoadingWorld.

Parameters:
@Nonnull final Ref playerRef
@Nonnull final ComponentAccessor componentAccessor
@Nonnull final CompletableFuture worldFuture
@Nonnull final World originalWorld
@Nonnull final Player playerComponent

world

public the world (e.g., 'Flat', 'Hytale')

Method world.

Parameters:
e.g. e.g.
'Flat' 'Flat'
'Hytale' 'Hytale'