Add more specifics to cable energy cap

This commit is contained in:
DBotThePony 2023-12-29 16:39:19 +07:00
parent 79aeca5720
commit 35e0bc65da
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -85,6 +85,12 @@ class EnergyCableBlockEntity(blockPos: BlockPos, blockState: BlockState) : Matte
override val maxBatteryLevel: Decimal get() = Decimal.ZERO
override var energyFlow: FlowDirection = FlowDirection.BI_DIRECTIONAL
private set
override val canSetBatteryLevel: Boolean
get() = false
override val missingPower: Decimal
get() = Decimal.POSITIVE_INFINITY
}
inner class Node : GraphNode<Node, EnergyCableGraph>(::EnergyCableGraph) {