public interface CardFactory
CardProxy
Modifier and Type | Method and Description |
---|---|
default 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 |
default 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 createdefault Card createCard(ImmutableCard card)
ImmutableCard
with given random propertiescard
- The type of card createddefault Card readCard(net.minecraft.item.ItemStack itemStack)
itemStack
- The card item