InstanceListPage

public class InstanceListPage extends InteractiveCustomUIPage

Class InstanceListPage. Provides instancelistpage functionality for the Hytale server.

java.lang.Object > InteractiveCustomUIPage > InstanceListPage

Field Summary

selectedInstance

private String selectedInstance

Field selectedInstance.

instances

private List instances

Field instances.

player

final Player player

Field player.

playerStore

final Store playerStore

Field playerStore.

playerWorld

final World playerWorld

Field playerWorld.

spawn

final Transform spawn

Field spawn.

world

final World world

Field world.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

position

final Vector3d position

Field position.

returnLocation

final Transform returnLocation

Field returnLocation.

instanceWorld

final CompletableFuture instanceWorld

Field instanceWorld.

commandBuilder

final UICommandBuilder commandBuilder

Field commandBuilder.

instance

private String instance

Field instance.

action

private Action action

Field action.

Method Detail

InstanceListPage

public public InstanceListPage (@Nonnull final PlayerRef playerRef)

Method InstanceListPage.

Parameters:
@Nonnull final PlayerRef playerRef

build

public void build (@Nonnull final Ref ref, @Nonnull final UICommandBuilder commandBuilder, @Nonnull final UIEventBuilder eventBuilder, @Nonnull final Store store)

Method build.

Parameters:
@Nonnull final Ref ref
@Nonnull final UICommandBuilder commandBuilder
@Nonnull final UIEventBuilder eventBuilder
@Nonnull final Store store

handleDataEvent

public void handleDataEvent (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final PageData data)

Method handleDataEvent.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final PageData data

load

private void load (@Nonnull final Ref ref, @Nonnull final Store store)

Method load.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store

Teleport

public new Teleport (world, spawn)

Method Teleport.

Parameters:
world world
spawn spawn

spawn

private void spawn (@Nonnull final Ref ref, @Nonnull final Store store)

Method spawn.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store

Transform

public new Transform (position.clone()

Method Transform.

Parameters:
position.clone( position.clone(

updateSelection

private void updateSelection (final String instance)

Method updateSelection.

Parameters:
final String instance

getInstance

public String getInstance ()

Method getInstance.

getAction

public Action getAction ()

Method getAction.

KeyedCodec

public new KeyedCodec ("Action", new EnumCodec(Action.class)

Method KeyedCodec.

Parameters:
"Action" "Action"
new EnumCodec(Action.class