Class MineRequest

java.lang.Object
me.hackware.api.mining.MineRequest

public final class MineRequest extends Object
A break request for MiningManager.breakAt(MineRequest) / MiningManager.queue(MineRequest).

 MiningManager.get().breakAt(MineRequest.at(pos)
         .priority(BreakPriority.HIGH)
         .owner("myplugin")
         .evictableRebreak(true));
 
  • Method Details

    • at

      public static MineRequest at(net.minecraft.core.BlockPos pos)
      Starts a request for the given block.
    • face

      public MineRequest face(net.minecraft.core.Direction face)
      The preferred break face. This is a fallback only — the pipeline re-picks an eye-aligned face per packet whenever the player's position allows one.
    • priority

      public MineRequest priority(BreakPriority priority)
      Priority tier against other break requests. Default BreakPriority.NORMAL.
    • evictableRebreak

      public MineRequest evictableRebreak(boolean evictable)
      When true, the rebreak this block leaves behind after breaking is "spent": any later break request may take the slot immediately. Set for bulk/throughput mining so a finished block doesn't park an idle rebreak and stall the pipeline; leave false for rebreaks that must stay armed (anti-surround holds).
    • owner

      public MineRequest owner(String owner)
      Ownership tag, normally the plugin id. Tagged work can be cancelled in one call with MiningManager.cancelAllFrom(String) and is reported back on MineTargetView.owner() and the mining events.
    • pos

      public net.minecraft.core.BlockPos pos()
    • face

      public net.minecraft.core.Direction face()
    • priority

      public BreakPriority priority()
    • isEvictableRebreak

      public boolean isEvictableRebreak()
    • owner

      public String owner()