Package net.swofty.region
Class SkyBlockMiningConfiguration
java.lang.Object
net.swofty.region.SkyBlockMiningConfiguration
- Direct Known Subclasses:
MineCoalConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToQueue
(SkyBlockPlayer player, net.minestom.server.coordinate.Pos block, net.minestom.server.instance.SharedInstance instance) Optional<net.minestom.server.instance.block.Block>
getInitialBlockFromPos
(net.minestom.server.coordinate.Pos block) abstract List<net.minestom.server.item.Material>
static net.minestom.server.instance.block.Block
getRandomBlock
(SkyBlockMiningConfiguration.RegenerationConfig... regenerationConfigs) abstract long
handleStageOne
(SkyBlockMiningConfiguration.MiningTask task, net.minestom.server.coordinate.Pos brokenBlock) handleStageTwo
(SkyBlockMiningConfiguration.MiningTask task, net.minestom.server.coordinate.Pos brokenBlock) void
removeExistingTask
(net.minestom.server.coordinate.Pos block) static void
startRepeater
(net.minestom.server.timer.Scheduler scheduler)
-
Field Details
-
activeMiningTasks
-
-
Constructor Details
-
SkyBlockMiningConfiguration
public SkyBlockMiningConfiguration()
-
-
Method Details
-
handleStageOne
public abstract SkyBlockMiningConfiguration.MiningTask handleStageOne(SkyBlockMiningConfiguration.MiningTask task, net.minestom.server.coordinate.Pos brokenBlock) -
handleStageTwo
public abstract SkyBlockMiningConfiguration.MiningTask handleStageTwo(SkyBlockMiningConfiguration.MiningTask task, net.minestom.server.coordinate.Pos brokenBlock) -
getMineableBlocks
-
getRegenerationTime
public abstract long getRegenerationTime() -
getInitialBlockFromPos
public Optional<net.minestom.server.instance.block.Block> getInitialBlockFromPos(net.minestom.server.coordinate.Pos block) -
removeExistingTask
public void removeExistingTask(net.minestom.server.coordinate.Pos block) -
startRepeater
public static void startRepeater(net.minestom.server.timer.Scheduler scheduler) -
getRandomBlock
public static net.minestom.server.instance.block.Block getRandomBlock(SkyBlockMiningConfiguration.RegenerationConfig... regenerationConfigs)
-