SpawnItemCommand

public class SpawnItemCommand extends AbstractPlayerCommand

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

java.lang.Object > AbstractPlayerCommand > SpawnItemCommand

Field Summary

item

final Item item

Field item.

itemId

final String itemId

Field itemId.

quantity

final int quantity

Field quantity.

force

final float force

Field force.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

playerPosition

final Vector3d playerPosition

Field playerPosition.

playerModel

final Model playerModel

Field playerModel.

throwSpeed

final float throwSpeed

Field throwSpeed.

count

final int count

Field count.

throwPosition

final Vector3d throwPosition

Field throwPosition.

random

final ThreadLocalRandom random

Field random.

itemEntityHolder

final Holder itemEntityHolder

Field itemEntityHolder.

itemEntityComponent

final ItemComponent itemEntityComponent

Field itemEntityComponent.

totalQuantity

final int totalQuantity

Field totalQuantity.

Method Detail

SpawnItemCommand

public public SpawnItemCommand ()

Method SpawnItemCommand.

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

ItemStack

public new ItemStack (itemId, quantity)

Method ItemStack.

Parameters:
itemId itemId
quantity quantity