public class MoveCommand extends AbstractPlayerCommand
Command for mov operations. Registered with the command system and callable by players.
java.lang.Object > AbstractPlayerCommand > MoveCommand
Field Summary
playerComponent
final
Player
playerComponent
Field playerComponent.
headRotationComponent
final
HeadRotation
headRotationComponent
Field headRotationComponent.
directionVector
final
Vector3i
directionVector
Field directionVector.
Method Detail
MoveCommand
public
public
MoveCommand
()
Method MoveCommand.
MoveWithDistanceCommand
public
new
MoveWithDistanceCommand
()
Method MoveWithDistanceCommand.
MoveWithDirectionAndDistanceCommand
public
new
MoveWithDirectionAndDistanceCommand
()
Method MoveWithDirectionAndDistanceCommand.
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 CommandContextcontext@Nonnull final Storestore@Nonnull final Refref@Nonnull final PlayerRefplayerRef@Nonnull final Worldworld
executeMove
static
void
executeMove
(@Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nullable final RelativeDirection direction, final int distance, final boolean empty, final boolean entities)
Method executeMove.
- Parameters:
@Nonnull final Storestore@Nonnull final Refref@Nonnull final PlayerRefplayerRef@Nullable final RelativeDirectiondirectionfinal intdistancefinal booleanemptyfinal booleanentities