File tree Expand file tree Collapse file tree 8 files changed +0
-26
lines changed
src/main/kotlin/com/lambda/interaction Expand file tree Collapse file tree 8 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,12 @@ import kotlinx.coroutines.runBlocking
3434import kotlinx.coroutines.supervisorScope
3535import net.minecraft.util.math.Vec3d
3636
37- /* *
38- * The public API for simulating a blueprint.
39- */
4037object BuildSimulator : Sim<PostSimResult>() {
4138 /* *
4239 * Iterates over the blueprint and performs the best suited simulation. Each simulation adds [BuildResult]s to
4340 * the provided concurrent set. This method uses coroutines to perform the simulations in parallel. The results
4441 * will likely not be returned in the same order they were simulated due to the parallel nature of the simulations.
4542 *
46- * @return A set of [BuildResult]s
47- *
4843 * @see ISimInfo.sim
4944 * @see simPostProcessing
5045 * @see simPlacement
Original file line number Diff line number Diff line change @@ -85,8 +85,6 @@ abstract class Sim<T : BuildResult> : Results<T> {
8585
8686 /* *
8787 * Scans a [voxelShape] on the given [sides] at the [pos] from the [pov].
88- *
89- * @return A set of [CheckedHit]
9088 */
9189 suspend fun ISimInfo.scanShape (
9290 pov : Vec3d ,
Original file line number Diff line number Diff line change @@ -73,9 +73,6 @@ class BreakSim private constructor(simInfo: ISimInfo)
7373 BreakResult .Dependency (pos, buildResult)
7474
7575 companion object {
76- /* *
77- * Public [SimDsl] API.
78- */
7976 @SimDsl
8077 context(automatedSafeContext: AutomatedSafeContext , dependent: Sim <* >)
8178 suspend fun SimInfo.simBreak () =
Original file line number Diff line number Diff line change @@ -76,9 +76,6 @@ class PlaceSim private constructor(simInfo: ISimInfo)
7676 PlaceResult .Dependency (pos, buildResult)
7777
7878 companion object {
79- /* *
80- * Public [SimDsl] API.
81- */
8279 context(automatedSafeContext: AutomatedSafeContext , dependent: Sim <* >)
8380 @SimDsl
8481 suspend fun SimInfo.simPlacement () =
Original file line number Diff line number Diff line change @@ -52,9 +52,6 @@ class PostProcessingSim private constructor(simInfo: ISimInfo)
5252 InteractResult .Dependency (pos, buildResult)
5353
5454 companion object {
55- /* *
56- * Public [SimDsl] API.
57- */
5855 context(automatedSafeContext: AutomatedSafeContext , dependent: Sim <* >)
5956 @SimDsl
6057 suspend fun SimInfo.simPostProcessing () =
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import com.lambda.event.events.UpdateManagerEvent
2727import com.lambda.event.listener.SafeListener.Companion.listen
2828import com.lambda.interaction.request.Logger
2929import com.lambda.interaction.request.RequestHandler
30- import com.lambda.interaction.request.inventory.InventoryManager.actions
3130import com.lambda.interaction.request.inventory.InventoryManager.alteredSlots
3231import com.lambda.interaction.request.placing.PlaceManager
3332import com.lambda.module.hud.ManagerDebugLoggers.inventoryManagerLogger
@@ -128,9 +127,6 @@ object InventoryManager : RequestHandler<InventoryRequest>(
128127 if (actionsThisTick > 0 ) activeThisTick = true
129128 }
130129
131- /* *
132- * Populates the [actions] collection and sets some configurations.
133- */
134130 private fun populateFrom (request : InventoryRequest ) {
135131 PlaceManager .logger.debug(" Populating from request" , request)
136132 actions = request.actions.toMutableList()
Original file line number Diff line number Diff line change @@ -69,9 +69,6 @@ import net.minecraft.util.math.BlockPos
6969import net.minecraft.world.GameMode
7070import kotlin.math.min
7171
72- /* *
73- * Manager designed to place blocks.
74- */
7572object PlaceManager : RequestHandler<PlaceRequest>(
7673 0 ,
7774 TickEvent .Pre ,
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ import com.lambda.util.Communication.info
2929import com.lambda.util.Communication.warn
3030import com.lambda.util.collections.LimitedDecayQueue
3131
32- /* *
33- * Designed to handle placements pending a response from the server.
34- */
3532object PlacedBlockHandler : PostActionHandler<PlaceInfo>() {
3633 override val pendingActions = LimitedDecayQueue <PlaceInfo >(
3734 AutomationConfig .buildConfig.maxPendingInteractions,
You can’t perform that action at this time.
0 commit comments