Class HTStorageCapacityComponent
-
- All Implemented Interfaces:
-
hiiragi283.core.api.block.entity.HTBlockEntityComponent,hiiragi283.core.api.serialization.component.DataComponentSerializable,hiiragi283.core.api.serialization.value.HTValueSerializable,net.neoforged.neoforge.common.util.INBTSerializable
public final class HTStorageCapacityComponent implements HTBlockEntityComponent
-
-
Constructor Summary
Constructors Constructor Description HTStorageCapacityComponent(HTBlockEntity owner)
-
Method Summary
Modifier and Type Method Description final IntegergetScale()final UnitsetScale(Integer value)final IntegergetCapacity(IntSupplier base)Unitserialize(HTValueOutput output)Unitdeserialize(HTValueInput input)UnitapplyComponents(DataComponentGetter input)UnitcollectComponents(DataComponentMap.Builder builder)-
-
Method Detail
-
getCapacity
final Integer getCapacity(IntSupplier base)
-
deserialize
Unit deserialize(HTValueInput input)
-
applyComponents
Unit applyComponents(DataComponentGetter input)
-
collectComponents
Unit collectComponents(DataComponentMap.Builder builder)
-
-
-
-