Class TumblestoneBlockEvent.PreBlockDestroy

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

public static class TumblestoneBlockEvent.PreBlockDestroy extends TumblestoneBlockEvent
Fired before the destroy happens Cancelling will prevent the destroy (when the tumblestone block receives damage from a player)
  • Constructor Details

    • PreBlockDestroy

      public PreBlockDestroy(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