Package me.hackware.api.mining
Class MineRequest
java.lang.Object
me.hackware.api.mining.MineRequest
A break request for
MiningManager.breakAt(MineRequest) /
MiningManager.queue(MineRequest).
MiningManager.get().breakAt(MineRequest.at(pos)
.priority(BreakPriority.HIGH)
.owner("myplugin")
.evictableRebreak(true));
-
Method Summary
Modifier and TypeMethodDescriptionstatic MineRequestat(net.minecraft.core.BlockPos pos) Starts a request for the given block.evictableRebreak(boolean evictable) When true, the rebreak this block leaves behind after breaking is "spent": any later break request may take the slot immediately.net.minecraft.core.Directionface()face(net.minecraft.core.Direction face) The preferred break face.booleanowner()Ownership tag, normally the plugin id.net.minecraft.core.BlockPospos()priority()priority(BreakPriority priority) Priority tier against other break requests.
-
Method Details
-
at
Starts a request for the given block. -
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
Priority tier against other break requests. DefaultBreakPriority.NORMAL. -
evictableRebreak
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
Ownership tag, normally the plugin id. Tagged work can be cancelled in one call withMiningManager.cancelAllFrom(String)and is reported back onMineTargetView.owner()and the mining events. -
pos
public net.minecraft.core.BlockPos pos() -
face
public net.minecraft.core.Direction face() -
priority
-
isEvictableRebreak
public boolean isEvictableRebreak() -
owner
-