Class TumblestoneBlockEvent.PostBlockDestroy

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent
com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent.PostBlockDestroy
Enclosing class:
TumblestoneBlockEvent

public static class TumblestoneBlockEvent.PostBlockDestroy extends TumblestoneBlockEvent
Fired after the destroy happens (when the tumblestone block receives damage from a player)
  • Constructor Details

    • PostBlockDestroy

      public PostBlockDestroy(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 item)
      Constructor taking player and all block details
      Parameters:
      state - The state of the block
      pos - The position of the block
      player - The player
      item - The item in their MAIN_HAND
  • Method Details

    • getPlayer

      public net.minecraft.world.entity.player.Player getPlayer()
      Gets the player entity
      Returns:
      The player entity
    • getItem

      public net.minecraft.world.item.ItemStack getItem()
      The main hand item
      Returns:
      The main hand