public class CardProxy
extends java.lang.Object
CardFactory implementation
To change the CardFactory implementation use the setFactory(CardFactory) method during
initialization| Constructor and Description |
|---|
CardProxy() |
| Modifier and Type | Method and Description |
|---|---|
static Card |
createCard(ImmutableCard card)
Creates an instance of the
ImmutableCard with given random properties |
static net.minecraft.item.ItemStack |
createCardItem(ImmutableCard card)
Creates an
ItemStack intance of the ImmutableCard type passed |
static Card |
readCard(net.minecraft.item.ItemStack itemStack)
Gets the instance of a card from the item
|
static void |
setFactory(CardFactory factory)
Sets the factory implementation
|
public static void setFactory(CardFactory factory)
factory - The factory implementationpublic static net.minecraft.item.ItemStack createCardItem(ImmutableCard card)
ItemStack intance of the ImmutableCard type passedcard - The type of card to createpublic static Card createCard(ImmutableCard card)
ImmutableCard with given random propertiescard - The type of card createdpublic static Card readCard(net.minecraft.item.ItemStack itemStack)
itemStack - The card item