public class CardSpecificationProxy
extends java.lang.Object
SpecificationFactory
where it handles passing in the classConstructor and Description |
---|
CardSpecificationProxy() |
Modifier and Type | Method and Description |
---|---|
static CardSpecification |
create(java.lang.Object... args)
Creates a
CardSpecification instance from the args by converting them to String |
static CardSpecification |
create(java.lang.String... specs)
Creates a
CardSpecification instance from a string array |
static CardSpecification |
fromNbt(net.minecraft.nbt.CompoundNBT nbt) |
static java.lang.String[] |
getRequirementNames() |
static void |
register(Requirement<Card,net.minecraft.item.ItemStack,?> requirement)
Register a new
Requirement |
static CardSpecification |
requirements(java.lang.String spec)
Gets the list of
Requirement s created from the given spec |
public static void register(Requirement<Card,net.minecraft.item.ItemStack,?> requirement)
Requirement
requirement
- The requirement being registeredpublic static CardSpecification requirements(java.lang.String spec)
Requirement
s created from the given specspec
- The spec being parsedpublic static CardSpecification create(java.lang.String... specs)
CardSpecification
instance from a string arrayspecs
- The specs being parsedpublic static CardSpecification create(java.lang.Object... args)
CardSpecification
instance from the args by converting them to Stringargs
- Args being convertedpublic static java.lang.String[] getRequirementNames()
public static CardSpecification fromNbt(net.minecraft.nbt.CompoundNBT nbt)