public class StackCommand extends AbstractPlayerCommand
Command for stac operations. Registered with the command system and callable by players.
java.lang.Object > AbstractPlayerCommand > StackCommand
Field Summary
playerComponent
final
Player
playerComponent
Field playerComponent.
playerRefComponent
final
PlayerRef
playerRefComponent
Field playerRefComponent.
headRotationComponent
final
HeadRotation
headRotationComponent
Field headRotationComponent.
directionVector
final
Vector3i
directionVector
Field directionVector.
Method Detail
StackCommand
public
public
StackCommand
()
Method StackCommand.
StackWithCountCommand
public
new
StackWithCountCommand
()
Method StackWithCountCommand.
StackWithDirectionAndCountCommand
public
new
StackWithDirectionAndCountCommand
()
Method StackWithDirectionAndCountCommand.
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
executeStack
static
void
executeStack
(@Nonnull final Store store, @Nonnull final Ref ref, @Nullable final RelativeDirection direction, final int count, final boolean empty, final int spacing)
Method executeStack.
- Parameters:
@Nonnull final Storestore@Nonnull final Refref@Nullable final RelativeDirectiondirectionfinal intcountfinal booleanemptyfinal intspacing