Package com.pixelmonmod.api.tcg
Class CardSpecificationProxy
java.lang.Object
com.pixelmonmod.api.tcg.CardSpecificationProxy
Static proxy class for the
SpecificationFactory
where it handles passing in the class-
Method Summary
Modifier and TypeMethodDescriptionstatic ParseAttempt<CardSpecification>
Creates aCardSpecification
instance from a string arraystatic ParseAttempt<CardSpecification>
fromNbt
(net.minecraft.nbt.CompoundTag nbt) static String[]
static void
register
(Requirement<Card, net.minecraft.world.item.ItemStack, ?> requirement) Register a newRequirement
static ParseAttempt<List<Requirement<Card,
net.minecraft.world.item.ItemStack, ?>>> requirements
(String spec) Gets the list ofRequirement
s created from the given spec
-
Method Details
-
register
Register a newRequirement
- Parameters:
requirement
- The requirement being registered
-
requirements
public static ParseAttempt<List<Requirement<Card,net.minecraft.world.item.ItemStack, requirements?>>> (String spec) Gets the list ofRequirement
s created from the given spec- Parameters:
spec
- The spec being parsed- Returns:
- The list of all requirements
-
create
Creates aCardSpecification
instance from a string array- Parameters:
specs
- The specs being parsed- Returns:
- The pokemon spec created
-
getRequirementNames
-
fromNbt
-