HubCommand

public class HubCommand extends AbstractPlayerCommand

Command for hu operations. Registered with the command system and callable by players.

java.lang.Object > AbstractPlayerCommand > HubCommand

Field Summary

parentWorld

final World parentWorld

Field parentWorld.

hubConfig

final CreativeHubWorldConfig hubConfig

Field hubConfig.

currentHub

final World currentHub

Field currentHub.

spawnProvider

final ISpawnProvider spawnProvider

Field spawnProvider.

returnPoint

final Transform returnPoint

Field returnPoint.

hubInstance

final World hubInstance

Field hubInstance.

hubEntityConfig

final CreativeHubEntityConfig hubEntityConfig

Field hubEntityConfig.

Method Detail

HubCommand

public public HubCommand ()

Method HubCommand.

execute

protected void execute (@Nonnull final CommandContext context, @Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nonnull final World world)

Method execute.

Parameters:
@Nonnull final CommandContext context
@Nonnull final Store store
@Nonnull final Ref ref
@Nonnull final PlayerRef playerRef
@Nonnull final World world

findParentHubWorld

private World findParentHubWorld (@Nonnull final Store store, @Nonnull final Ref ref)

Method findParentHubWorld.

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