public class RarityRequirement extends AbstractCardRequirement<CardRarity>
keys
Constructor and Description |
---|
RarityRequirement() |
RarityRequirement(CardRarity rarity) |
Modifier and Type | Method and Description |
---|---|
void |
applyData(Card card) |
Requirement<Card,net.minecraft.item.ItemStack,CardRarity> |
createInstance(CardRarity value)
Creates a new instance of the requirement with the given value
|
java.util.List<Requirement<Card,net.minecraft.item.ItemStack,?>> |
createSimple(java.lang.String key,
java.lang.String spec) |
CardRarity |
getValue()
Gets the internal value of the requirement
|
boolean |
isDataMatch(Card card) |
applyMinecraft, isMinecraftMatch
create, fits, getAliases
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority, shouldContinue
public RarityRequirement()
public RarityRequirement(CardRarity rarity)
public Requirement<Card,net.minecraft.item.ItemStack,CardRarity> createInstance(CardRarity value)
Requirement
value
- The valuepublic boolean isDataMatch(Card card)
public void applyData(Card card)
public CardRarity getValue()
Requirement
public java.util.List<Requirement<Card,net.minecraft.item.ItemStack,?>> createSimple(java.lang.String key, java.lang.String spec)
createSimple
in class AbstractCardRequirement<CardRarity>