ViewportCommand

public class ViewportCommand extends AbstractPlayerCommand

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

java.lang.Object > AbstractPlayerCommand > ViewportCommand

Field Summary

activeTask

private Runnable activeTask

Field activeTask.

playerComponent

final Player playerComponent

Field playerComponent.

radius

final Integer radius

Field radius.

playerPosition_voxelGrid

final Vector3d playerPosition_voxelGrid

Field playerPosition_voxelGrid.

min_voxelGrid

final Vector3i min_voxelGrid

Field min_voxelGrid.

max_voxelGrid

final Vector3i max_voxelGrid

Field max_voxelGrid.

builderState

final BuilderToolsPlugin.BuilderState builderState

Field builderState.

selection

final BlockSelection selection

Field selection.

viewport

final NViewport viewport

Field viewport.

msg

final String msg

Field msg.

msg2

final String msg2

Field msg2.

Method Detail

ViewportCommand

public public ViewportCommand (@Nonnull final AssetManager assetManager)

Method ViewportCommand.

Parameters:
@Nonnull final AssetManager assetManager

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

NViewport

public new NViewport (viewportBounds_voxelGrid, world, context.sender()

Method NViewport.

Parameters:
viewportBounds_voxelGrid viewportBounds_voxelGrid
world world
context.sender( context.sender(