WorldPathBuilderCommand

public class WorldPathBuilderCommand extends AbstractCommandCollection

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

java.lang.Object > AbstractCommandCollection > WorldPathBuilderCommand

Field Summary

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

name

final String name

Field name.

builder

final WorldPathBuilder builder

Field builder.

worldPath

final WorldPathBuilder worldPath

Field worldPath.

waypoints

final ObjectArrayList waypoints

Field waypoints.

future

final CompletableFuture future

Field future.

scheduledFuture

final ScheduledFuture[] scheduledFuture

Field scheduledFuture.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

transform

final Transform transform

Field transform.

index

final int index

Field index.

path

final WorldPath path

Field path.

worldPathConfig

final WorldPathConfig worldPathConfig

Field worldPathConfig.

Method Detail

WorldPathBuilderCommand

public public WorldPathBuilderCommand ()

Method WorldPathBuilderCommand.

WorldPathBuilderStopCommand

public new WorldPathBuilderStopCommand ()

Method WorldPathBuilderStopCommand.

WorldPathBuilderLoadCommand

public new WorldPathBuilderLoadCommand ()

Method WorldPathBuilderLoadCommand.

WorldPathBuilderSimulateCommand

public new WorldPathBuilderSimulateCommand ()

Method WorldPathBuilderSimulateCommand.

WorldPathBuilderClearCommand

public new WorldPathBuilderClearCommand ()

Method WorldPathBuilderClearCommand.

WorldPathBuilderAddCommand

public new WorldPathBuilderAddCommand ()

Method WorldPathBuilderAddCommand.

WorldPathBuilderSetCommand

public new WorldPathBuilderSetCommand ()

Method WorldPathBuilderSetCommand.

WorldPathBuilderGotoCommand

public new WorldPathBuilderGotoCommand ()

Method WorldPathBuilderGotoCommand.

WorldPathBuilderRemoveCommand

public new WorldPathBuilderRemoveCommand ()

Method WorldPathBuilderRemoveCommand.

WorldPathBuilderSaveCommand

public new WorldPathBuilderSaveCommand ()

Method WorldPathBuilderSaveCommand.

createBuilder

Method createBuilder.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nullable final WorldPath existing

WorldPath

public new WorldPath (name, new ObjectArrayList()

Method WorldPath.

Parameters:
name name
new ObjectArrayList(

getBuilder

Method getBuilder.

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

getOrCreateBuilder

static WorldPathBuilder getOrCreateBuilder (@Nonnull final Ref ref, @Nonnull final Store store)

Method getOrCreateBuilder.

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

putBuilder

public return putBuilder (ref, store, createBuilder(ref, store, null)

Method putBuilder.

Parameters:
ref ref
store store
createBuilder(ref createBuilder(ref
null null

removeBuilder

static WorldPath removeBuilder (@Nonnull final Ref ref, @Nonnull final Store store)

Method removeBuilder.

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

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

Teleport

public new Teleport (null, transform)

Method Teleport.

Parameters:
null null
transform transform