Class AbstractCardRequirement<A>
java.lang.Object
com.pixelmonmod.api.requirement.AbstractRequirement<Card,net.minecraft.world.item.ItemStack,A>
  
com.pixelmonmod.api.tcg.requirement.AbstractCardRequirement<A>
- Type Parameters:
 A- The data type
- All Implemented Interfaces:
 Requirement<Card,net.minecraft.world.item.ItemStack, A> 
- Direct Known Subclasses:
 RarityRequirement
public abstract class AbstractCardRequirement<A>
extends AbstractRequirement<Card,net.minecraft.world.item.ItemStack,A>  
Basic abstract implementation for specs following the format : 
- 
Field Summary
Fields inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
keys - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidapplyMinecraft(net.minecraft.world.item.ItemStack itemStack) Applis the parsed requirement to the minecraft dataabstract ParseAttempt<List<Requirement<Card,net.minecraft.world.item.ItemStack, ?>>> Attempts to parse the spec with the key that was found in the spec stringbooleanisMinecraftMatch(net.minecraft.world.item.ItemStack itemStack) If the minecraft type matches the parsed requirementMethods inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
create, fits, getAliasesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.api.requirement.Requirement
applyData, createInstance, getPriority, getValue, isDataMatch, shouldContinue 
- 
Constructor Details
- 
AbstractCardRequirement
 
 - 
 - 
Method Details
- 
create
public abstract ParseAttempt<List<Requirement<Card,net.minecraft.world.item.ItemStack, create?>>> (String key, String spec) Description copied from class:AbstractRequirementAttempts to parse the spec with the key that was found in the spec string- Specified by:
 createin classAbstractRequirement<Card,net.minecraft.world.item.ItemStack, A> - Parameters:
 key- The key foundspec- The spec being parsed- Returns:
 - The parse attempt
 
 - 
applyMinecraft
public void applyMinecraft(net.minecraft.world.item.ItemStack itemStack) Description copied from interface:RequirementApplis the parsed requirement to the minecraft data- Parameters:
 itemStack- The minecraft data
 - 
isMinecraftMatch
public boolean isMinecraftMatch(net.minecraft.world.item.ItemStack itemStack) Description copied from interface:RequirementIf the minecraft type matches the parsed requirement- Parameters:
 itemStack- The minecraft data to check against- Returns:
 - True if a match
 
 
 -