GiveItemInteraction

public class GiveItemInteraction extends ChoiceInteraction

Class GiveItemInteraction. Provides giveiteminteraction functionality for the Hytale server.

java.lang.Object > ChoiceInteraction > GiveItemInteraction

Field Summary

itemId

protected String itemId

Field itemId.

quantity

protected int quantity

Field quantity.

playerComponent

final Player playerComponent

Field playerComponent.

Method Detail

GiveItemInteraction

public public GiveItemInteraction (final String itemId, final int quantity)

Method GiveItemInteraction.

Parameters:
final String itemId
final int quantity

getItemId

public String getItemId ()

Method getItemId.

getQuantity

public int getQuantity ()

Method getQuantity.

run

public void run (@Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef)

Method run.

Parameters:
@Nonnull final Store store
@Nonnull final Ref ref
@Nonnull final PlayerRef playerRef

ItemStack

public new ItemStack (this.itemId, this.quantity)

Method ItemStack.

Parameters:
this.itemId this.itemId
this.quantity this.quantity

toString

public String toString ()

Method toString.

KeyedCodec

public new KeyedCodec ("Quantity", Codec.INTEGER)

Method KeyedCodec.

Parameters:
"Quantity" "Quantity"
Codec.INTEGER Codec.INTEGER