ShopElement

public class ShopElement extends ChoiceElement

Class ShopElement. Provides shopelement functionality for the Hytale server.

java.lang.Object > ChoiceElement > ShopElement

Field Summary

cost

protected int cost

Field cost.

iconPath

protected String iconPath

Field iconPath.

Method Detail

addButton

public void addButton (@Nonnull final UICommandBuilder commandBuilder, final UIEventBuilder eventBuilder, final String selector, final PlayerRef playerRef)

Method addButton.

Parameters:
@Nonnull final UICommandBuilder commandBuilder
final UIEventBuilder eventBuilder
final String selector
final PlayerRef playerRef

canFulfillRequirements

public boolean canFulfillRequirements (@Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef)

Method canFulfillRequirements.

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

KeyedCodec

public new KeyedCodec ("Icon", Codec.STRING)

Method KeyedCodec.

Parameters:
"Icon" "Icon"
Codec.STRING Codec.STRING