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 aCardSpecificationinstance from a string arraystatic ParseAttempt<CardSpecification>fromNbt(net.minecraft.nbt.CompoundTag nbt) static String[]static voidregister(Requirement<Card, net.minecraft.world.item.ItemStack, ?> requirement) Register a newRequirementstatic ParseAttempt<List<Requirement<Card,net.minecraft.world.item.ItemStack, ?>>> requirements(String spec) Gets the list ofRequirements 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 ofRequirements created from the given spec- Parameters:
spec- The spec being parsed- Returns:
- The list of all requirements
-
create
Creates aCardSpecificationinstance from a string array- Parameters:
specs- The specs being parsed- Returns:
- The pokemon spec created
-
getRequirementNames
-
fromNbt
-