Class ShopElement
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.pages.choices.ChoiceElement
com.hypixel.hytale.builtin.adventure.shop.ShopElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<ShopElement> protected intprotected StringFields inherited from class com.hypixel.hytale.server.core.entity.entities.player.pages.choices.ChoiceElement
BASE_CODEC, descriptionKey, displayNameKey, interactions, requirements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddButton(UICommandBuilder commandBuilder, UIEventBuilder eventBuilder, String selector, PlayerRef playerRef) booleancanFulfillRequirements(Store<EntityStore> store, Ref<EntityStore> ref, PlayerRef playerRef) Methods inherited from class com.hypixel.hytale.server.core.entity.entities.player.pages.choices.ChoiceElement
getDescriptionKey, getDisplayNameKey, getInteractions, getRequirements, toString
-
Field Details
-
CODEC
-
cost
protected int cost -
iconPath
-
-
Constructor Details
-
ShopElement
public ShopElement()
-
-
Method Details
-
addButton
public void addButton(@Nonnull UICommandBuilder commandBuilder, UIEventBuilder eventBuilder, String selector, PlayerRef playerRef) - Specified by:
addButtonin classChoiceElement
-
canFulfillRequirements
public boolean canFulfillRequirements(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull PlayerRef playerRef) - Overrides:
canFulfillRequirementsin classChoiceElement
-