public abstract static class MysteryBoxEvent.Open extends MysteryBoxEvent
Modifier and Type | Class and Description |
---|---|
static class |
MysteryBoxEvent.Open.Post |
static class |
MysteryBoxEvent.Open.Pre |
MysteryBoxEvent.Activate, MysteryBoxEvent.ComparatorPower, MysteryBoxEvent.Feed, MysteryBoxEvent.Open, MysteryBoxEvent.Tick
Modifier | Constructor and Description |
---|---|
protected |
Open(MysteryBoxTileEntity box,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.block.BlockState blockState,
net.minecraft.item.ItemStack itemStack)
MysteryBoxEvent.Open base constructor.
|
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
getItemStack()
Gets the item stack used in this interaction.
|
net.minecraft.entity.player.PlayerEntity |
getPlayer()
Gets the player who instigated this event.
|
getBlockState, getBox
protected Open(MysteryBoxTileEntity box, net.minecraft.entity.player.PlayerEntity player, net.minecraft.block.BlockState blockState, net.minecraft.item.ItemStack itemStack)
box
- The Mystery Box tile entity.player
- The player instigating this event.blockState
- The block state of this Mystery Box.itemStack
- The item stack being used in this interaction.