public interface CardFactory
CardProxy
Modifier and Type | Method and Description |
---|---|
Card |
createCard(ImmutableCard card)
Creates an instance of the
ImmutableCard with given random properties |
default net.minecraft.item.ItemStack |
createCardItem(ImmutableCard card)
Creates an
ItemStack intance of the ImmutableCard type passed |
Card |
readCard(net.minecraft.item.ItemStack itemStack)
Gets the instance of a card from the item
|
default net.minecraft.item.ItemStack createCardItem(ImmutableCard card)
ItemStack
intance of the ImmutableCard
type passedcard
- The type of card to createCard createCard(ImmutableCard card)
ImmutableCard
with given random propertiescard
- The type of card createdCard readCard(net.minecraft.item.ItemStack itemStack)
itemStack
- The card item