AbstractTargetEntityCommand

abstract class AbstractTargetEntityCommand extends AbstractAsyncCommand

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

java.lang.Object > AbstractAsyncCommand > AbstractTargetEntityCommand

Field Summary

ref

final Ref ref

Field ref.

store

final Store store

Field store.

playerRef

final Ref playerRef

Field playerRef.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

radius

final double radius

Field radius.

position

final Vector3d position

Field position.

results

final ObjectList> results

Field results.

targetPlayerRef

final PlayerRef targetPlayerRef

Field targetPlayerRef.

targetRef

final Ref targetRef

Field targetRef.

entityRef

final Ref entityRef

Field entityRef.

playerRef2

final Ref playerRef2

Field playerRef2.

entityRef2

final Ref entityRef2

Field entityRef2.

Method Detail

AbstractTargetEntityCommand

public public AbstractTargetEntityCommand (@Nonnull final String name, @Nonnull final String description)

Method AbstractTargetEntityCommand.

Parameters:
@Nonnull final String name
@Nonnull final String description

executeAsync

final CompletableFuture executeAsync (@Nonnull final CommandContext context)

Method executeAsync.

Parameters:
@Nonnull final CommandContext context

if

public else if (this.playerArg.provided(context)

Method if.

Parameters:
this.playerArg.provided(context this.playerArg.provided(context