Skip to content

Commit dbdab88

Browse files
committed
PlaceInfo toLogContext
1 parent ca437fa commit dbdab88

File tree

1 file changed

+12
-1
lines changed
  • src/main/kotlin/com/lambda/interaction/request/placing

1 file changed

+12
-1
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,22 @@ package com.lambda.interaction.request.placing
2020
import com.lambda.interaction.construction.context.BuildContext
2121
import com.lambda.interaction.construction.context.PlaceContext
2222
import com.lambda.interaction.request.ActionInfo
23+
import com.lambda.interaction.request.LogContext
24+
import com.lambda.interaction.request.LogContext.Companion.buildLogContext
2325
import net.minecraft.util.math.BlockPos
2426

2527
data class PlaceInfo(
2628
override val context: PlaceContext,
2729
override val pendingInteractionsList: MutableCollection<BuildContext>,
2830
val onPlace: ((BlockPos) -> Unit)?,
2931
val placeConfig: PlaceConfig
30-
) : ActionInfo
32+
) : ActionInfo, LogContext {
33+
override fun toLogContext() =
34+
buildLogContext {
35+
text("Place Info:")
36+
pushTab()
37+
text("Callbacks:")
38+
pushTab()
39+
text("onPlace: ${onPlace != null}")
40+
}
41+
}

0 commit comments

Comments
 (0)