public abstract class PackOpenEvent
extends net.minecraftforge.eventbus.api.Event
| Modifier and Type | Class and Description |
|---|---|
static class |
PackOpenEvent.Post
Fires after a pack has been opened.
|
static class |
PackOpenEvent.Pre
Fired before a pack is opened, before cards in the pack are calculated.
|
| Modifier and Type | Field and Description |
|---|---|
protected ImmutableCard[] |
cards |
protected net.minecraft.item.ItemStack |
packItem |
protected net.minecraft.entity.player.ServerPlayerEntity |
player |
| Constructor and Description |
|---|
PackOpenEvent(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack packItem,
ImmutableCard[] cards) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableCard[] |
getCards() |
net.minecraft.item.ItemStack |
getPackItem() |
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer() |
protected final net.minecraft.entity.player.ServerPlayerEntity player
protected final net.minecraft.item.ItemStack packItem
protected ImmutableCard[] cards
public PackOpenEvent(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack packItem,
ImmutableCard[] cards)
public net.minecraft.entity.player.ServerPlayerEntity getPlayer()
public net.minecraft.item.ItemStack getPackItem()
public ImmutableCard[] getCards()