Package com.pixelmonmod.tcg.duel.state
Class CardSelectorState
java.lang.Object
com.pixelmonmod.tcg.duel.state.CardSelectorState
Created by Hy on 5/20/2016.
-
Constructor Summary
ConstructorDescriptionCardSelectorState
(int minimumCount, int maximumCount, boolean countEnergy, CardSelectorDisplay displayType, boolean cancellable) CardSelectorState
(int id, int minimumCount, int maximumCount, boolean countEnergy, CardSelectorDisplay displayType, boolean cancellable, String customText, List<CardWithLocation> cardList) CardSelectorState
(int minimumCount, int maximumCount, CardSelectorDisplay displayType, boolean cancellable) CardSelectorState
(int minimumCount, int maximumCount, CardSelectorDisplay displayType, boolean cancellable, String customText) CardSelectorState
(net.minecraft.network.FriendlyByteBuf buf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCard
(CardWithLocation card) int
getId()
int
int
boolean
boolean
void
setCancellable
(boolean cancellable) void
setCardList
(List<CardWithLocation> cardList) void
setCustomText
(String customText) void
setDisplayType
(CardSelectorDisplay displayType) void
setId
(int id) void
write
(net.minecraft.network.FriendlyByteBuf buf)
-
Constructor Details
-
CardSelectorState
public CardSelectorState(int minimumCount, int maximumCount, CardSelectorDisplay displayType, boolean cancellable) -
CardSelectorState
public CardSelectorState(int minimumCount, int maximumCount, CardSelectorDisplay displayType, boolean cancellable, String customText) -
CardSelectorState
public CardSelectorState(int minimumCount, int maximumCount, boolean countEnergy, CardSelectorDisplay displayType, boolean cancellable) -
CardSelectorState
public CardSelectorState(int id, int minimumCount, int maximumCount, boolean countEnergy, CardSelectorDisplay displayType, boolean cancellable, String customText, List<CardWithLocation> cardList) -
CardSelectorState
public CardSelectorState(net.minecraft.network.FriendlyByteBuf buf)
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) -
getId
public int getId() -
setId
public void setId(int id) -
getCardList
-
setCardList
-
addCard
-
getMinimumCount
public int getMinimumCount() -
getMaximumCount
public int getMaximumCount() -
isCountEnergy
public boolean isCountEnergy() -
getDisplayType
-
setDisplayType
-
isCancellable
public boolean isCancellable() -
setCancellable
public void setCancellable(boolean cancellable) -
getCustomText
-
setCustomText
-