@@ -52,10 +52,10 @@ sealed class TargetState(val type: Type) : StateMatcher {
5252 ) = state.isEmpty
5353
5454 context(_: AutomatedSafeContext )
55- override fun getStack (pos : BlockPos , state : BlockState ): ItemStack = ItemStack .EMPTY
55+ override fun getStack (pos : BlockPos ): ItemStack = ItemStack .EMPTY
5656
5757 context(automatedSafeContext: AutomatedSafeContext )
58- override fun getState (pos : BlockPos , state : BlockState ) = automatedSafeContext.blockState(pos).emptyState
58+ override fun getState (pos : BlockPos ) = automatedSafeContext.blockState(pos).emptyState
5959
6060 override fun isEmpty () = true
6161 }
@@ -71,10 +71,10 @@ sealed class TargetState(val type: Type) : StateMatcher {
7171 ) = state.isAir
7272
7373 context(_: AutomatedSafeContext )
74- override fun getStack (pos : BlockPos , state : BlockState ): ItemStack = ItemStack .EMPTY
74+ override fun getStack (pos : BlockPos ): ItemStack = ItemStack .EMPTY
7575
7676 context(_: AutomatedSafeContext )
77- override fun getState (pos : BlockPos , state : BlockState ): BlockState = Blocks .AIR .defaultState
77+ override fun getState (pos : BlockPos ): BlockState = Blocks .AIR .defaultState
7878
7979 override fun isEmpty () = true
8080 }
@@ -90,15 +90,15 @@ sealed class TargetState(val type: Type) : StateMatcher {
9090 ) = with (safeContext) { state.isSolidBlock(world, pos) && state.block !in replace }
9191
9292 context(automatedSafeContext: AutomatedSafeContext )
93- override fun getStack (pos : BlockPos , state : BlockState ) =
93+ override fun getStack (pos : BlockPos ) =
9494 with (automatedSafeContext) {
9595 findDisposable()?.stacks?.firstOrNull {
9696 it.item.block in inventoryConfig.disposables && it.item.block !in replace
9797 } ? : ItemStack (Items .NETHERRACK )
9898 }
9999
100100 context(_: AutomatedSafeContext )
101- override fun getState (pos : BlockPos , state : BlockState ): BlockState = getStack(pos, state ).item.block.defaultState
101+ override fun getState (pos : BlockPos ): BlockState = getStack(pos).item.block.defaultState
102102
103103 override fun isEmpty () = false
104104 }
@@ -117,15 +117,15 @@ sealed class TargetState(val type: Type) : StateMatcher {
117117 }
118118
119119 context(automatedSafeContext: AutomatedSafeContext )
120- override fun getStack (pos : BlockPos , state : BlockState ) =
120+ override fun getStack (pos : BlockPos ) =
121121 with (automatedSafeContext) {
122122 findDisposable()?.stacks?.firstOrNull {
123123 it.item.block in inventoryConfig.disposables
124124 } ? : ItemStack (Items .NETHERRACK )
125125 }
126126
127127 context(_: AutomatedSafeContext )
128- override fun getState (pos : BlockPos , state : BlockState ): BlockState = getStack(pos, state ).item.block.defaultState
128+ override fun getState (pos : BlockPos ): BlockState = getStack(pos).item.block.defaultState
129129
130130 override fun isEmpty () = false
131131 }
@@ -142,12 +142,12 @@ sealed class TargetState(val type: Type) : StateMatcher {
142142 state.matches(blockState, ignoredProperties)
143143
144144 context(automatedSafeContext: AutomatedSafeContext )
145- override fun getStack (pos : BlockPos , state : BlockState ): ItemStack =
145+ override fun getStack (pos : BlockPos ): ItemStack =
146146 intermediaryBlockMap[blockState.block]?.startBlock?.item?.defaultStack
147147 ? : blockState.block.getPickStack(automatedSafeContext.world, pos, blockState, true )
148148
149149 context(_: AutomatedSafeContext )
150- override fun getState (pos : BlockPos , state : BlockState ): BlockState = blockState
150+ override fun getState (pos : BlockPos ): BlockState = blockState
151151
152152 override fun isEmpty () = blockState.isEmpty
153153 }
@@ -163,11 +163,11 @@ sealed class TargetState(val type: Type) : StateMatcher {
163163 ) = state.block == block
164164
165165 context(automatedSafeContext: AutomatedSafeContext )
166- override fun getStack (pos : BlockPos , state : BlockState ): ItemStack =
166+ override fun getStack (pos : BlockPos ): ItemStack =
167167 block.getPickStack(automatedSafeContext.world, pos, block.defaultState, true )
168168
169169 context(_: AutomatedSafeContext )
170- override fun getState (pos : BlockPos , state : BlockState ): BlockState = block.defaultState
170+ override fun getState (pos : BlockPos ): BlockState = block.defaultState
171171
172172 override fun isEmpty () = block.defaultState.isEmpty
173173 }
@@ -186,11 +186,11 @@ sealed class TargetState(val type: Type) : StateMatcher {
186186 ) = state.block == block
187187
188188 context(automatedSafeContext: AutomatedSafeContext )
189- override fun getStack (pos : BlockPos , state : BlockState ): ItemStack =
190- intermediaryBlockMap[getState(pos, state ).block]?.startBlock?.item?.defaultStack ? : itemStack
189+ override fun getStack (pos : BlockPos ): ItemStack =
190+ intermediaryBlockMap[getState(pos).block]?.startBlock?.item?.defaultStack ? : itemStack
191191
192192 context(_: AutomatedSafeContext )
193- override fun getState (pos : BlockPos , state : BlockState ): BlockState = block.defaultState
193+ override fun getState (pos : BlockPos ): BlockState = block.defaultState
194194
195195 override fun isEmpty () = false
196196 }
0 commit comments