Specify battery bank item handler as inputOutput
This commit is contained in:
parent
2bdefcf3c4
commit
b4aee84249
@ -39,16 +39,7 @@ class BatteryBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Matte
|
|||||||
synchronizer.bool(false)
|
synchronizer.bool(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
val itemConfig = ConfigurableItemHandler(
|
val itemConfig = ConfigurableItemHandler(inputOutput = container.handler(HandlerFilter.Dischargeable))
|
||||||
input = container.handler(HandlerFilter.Dischargeable.and(HandlerFilter.OnlyIn)),
|
|
||||||
output = container.handler(HandlerFilter.OnlyOut),
|
|
||||||
frontDefault = ItemHandlerMode.INPUT_OUTPUT,
|
|
||||||
backDefault = ItemHandlerMode.INPUT_OUTPUT,
|
|
||||||
leftDefault = ItemHandlerMode.INPUT_OUTPUT,
|
|
||||||
rightDefault = ItemHandlerMode.INPUT_OUTPUT,
|
|
||||||
topDefault = ItemHandlerMode.INPUT_OUTPUT,
|
|
||||||
bottomDefault = ItemHandlerMode.INPUT_OUTPUT,
|
|
||||||
)
|
|
||||||
|
|
||||||
private var currentChangeSlot = 0
|
private var currentChangeSlot = 0
|
||||||
private var currentDischangeSlot = 0
|
private var currentDischangeSlot = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user