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
firstRun
protected
void
firstRun
(@Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nonnull final CooldownHandler cooldownHandler)
Method firstRun.
- Parameters:
@Nonnull final InteractionTypetype@Nonnull final InteractionContextcontext@Nonnull final CooldownHandlercooldownHandler
if
public
else
if
(universe.isWorldLoadable(this.worldName)
Method if.
- Parameters:
universe.isWorldLoadable(this.worldNameuniverse.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 RefplayerRef@Nonnull final ComponentAccessorcomponentAccessor@Nonnull final WorldtargetWorld@Nonnull final PlayerplayerComponent
Transform
public
new
Transform
()
Method Transform.
Teleport
public
new
Teleport
(targetWorld, spawnPoint)
Method Teleport.
- Parameters:
targetWorldtargetWorldspawnPointspawnPoint
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 RefplayerRef@Nonnull final ComponentAccessorcomponentAccessor@Nonnull final CompletableFutureworldFuture@Nonnull final WorldoriginalWorld@Nonnull final PlayerplayerComponent
world
public
the
world
(e.g., 'Flat', 'Hytale')
Method world.
- Parameters:
e.g.e.g.'Flat''Flat''Hytale''Hytale'