Skip to content

Commit 2812266

Browse files
committed
cleanup
1 parent ee95c8b commit 2812266

File tree

8 files changed

+0
-26
lines changed

8 files changed

+0
-26
lines changed

src/main/kotlin/com/lambda/interaction/construction/simulation/BuildSimulator.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,12 @@ import kotlinx.coroutines.runBlocking
3434
import kotlinx.coroutines.supervisorScope
3535
import net.minecraft.util.math.Vec3d
3636

37-
/**
38-
* The public API for simulating a blueprint.
39-
*/
4037
object 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

src/main/kotlin/com/lambda/interaction/construction/simulation/Sim.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

src/main/kotlin/com/lambda/interaction/construction/simulation/checks/BreakSim.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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() =

src/main/kotlin/com/lambda/interaction/construction/simulation/checks/PlaceSim.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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() =

src/main/kotlin/com/lambda/interaction/construction/simulation/checks/PostProcessingSim.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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() =

src/main/kotlin/com/lambda/interaction/request/inventory/InventoryManager.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import com.lambda.event.events.UpdateManagerEvent
2727
import com.lambda.event.listener.SafeListener.Companion.listen
2828
import com.lambda.interaction.request.Logger
2929
import com.lambda.interaction.request.RequestHandler
30-
import com.lambda.interaction.request.inventory.InventoryManager.actions
3130
import com.lambda.interaction.request.inventory.InventoryManager.alteredSlots
3231
import com.lambda.interaction.request.placing.PlaceManager
3332
import 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()

src/main/kotlin/com/lambda/interaction/request/placing/PlaceManager.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ import net.minecraft.util.math.BlockPos
6969
import net.minecraft.world.GameMode
7070
import kotlin.math.min
7171

72-
/**
73-
* Manager designed to place blocks.
74-
*/
7572
object PlaceManager : RequestHandler<PlaceRequest>(
7673
0,
7774
TickEvent.Pre,

src/main/kotlin/com/lambda/interaction/request/placing/PlacedBlockHandler.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ import com.lambda.util.Communication.info
2929
import com.lambda.util.Communication.warn
3030
import com.lambda.util.collections.LimitedDecayQueue
3131

32-
/**
33-
* Designed to handle placements pending a response from the server.
34-
*/
3532
object PlacedBlockHandler : PostActionHandler<PlaceInfo>() {
3633
override val pendingActions = LimitedDecayQueue<PlaceInfo>(
3734
AutomationConfig.buildConfig.maxPendingInteractions,

0 commit comments

Comments
 (0)