Class MineBreakEvent

java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.MineBreakEvent

public class MineBreakEvent extends Event
Fired when a block tracked by a SilentMine slot breaks (turns to air). A phase of MinePhase.REBREAK_ARMED means an armed rebreak popped a block that had been re-placed on its position — the same position can fire repeatedly in that phase. Insta-mine fast-path breaks (never slot-tracked) do not fire this event.
  • Constructor Details

    • MineBreakEvent

      public MineBreakEvent(net.minecraft.core.BlockPos blockPos, MinePhase phase, me.hackware.client.modules.categories.player.SilentMine.MineSource source, String owner)
  • Method Details

    • getBlockPos

      public net.minecraft.core.BlockPos getBlockPos()
    • getPhase

      public MinePhase getPhase()
      The slot that held the block when it broke.
    • getSource

      public me.hackware.client.modules.categories.player.SilentMine.MineSource getSource()
      What requested the break.
    • getOwner

      public String getOwner()
      The request's ownership tag, or null for untagged work.