Class TumblestoneBlockEvent.PostBlockBroke
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent
com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent.PostBlockBroke
- Enclosing class:
- TumblestoneBlockEvent
Fires after the block drops the items after broken
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent
TumblestoneBlockEvent.PostBlockBroke, TumblestoneBlockEvent.PostBlockDestroy, TumblestoneBlockEvent.PostCooldownEnd, TumblestoneBlockEvent.PostGrow, TumblestoneBlockEvent.PreBlockBroke, TumblestoneBlockEvent.PreBlockDestroy, TumblestoneBlockEvent.PreCooldownEnd, TumblestoneBlockEvent.PreGrow
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionPostBlockBroke
(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack, List<net.minecraft.world.item.ItemStack> drops) The basic constructor -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent
getPos, getState, getWorld
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
PostBlockBroke
public PostBlockBroke(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack, List<net.minecraft.world.item.ItemStack> drops) The basic constructor- Parameters:
state
- The block statepos
- The position of the blockplayer
- The playeritemStack
- The item in MAIN_HANDdrops
- The player drops
-
-
Method Details
-
getPlayer
public net.minecraft.world.entity.player.Player getPlayer()The player breaking the block- Returns:
- The player
-
getItemStack
public net.minecraft.world.item.ItemStack getItemStack()Gets the item used in their MAIN_HAND- Returns:
- The item in the hand
-
getDrops
The drops from the block- Returns:
- The block drops
-