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 UICommandBuildercommandBuilderfinal UIEventBuildereventBuilderfinal Stringselectorfinal PlayerRefplayerRef
canFulfillRequirements
public
boolean
canFulfillRequirements
(@Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef)
Method canFulfillRequirements.
- Parameters:
@Nonnull final Storestore@Nonnull final Refref@Nonnull final PlayerRefplayerRef
KeyedCodec
public
new
KeyedCodec
("Icon", Codec.STRING)
Method KeyedCodec.
- Parameters:
"Icon""Icon"Codec.STRINGCodec.STRING