Class HTComponentEnergyBattery

  • All Implemented Interfaces:
    hiiragi283.core.api.HTDataSerializable , hiiragi283.core.api.HTDataSerializable.Empty , hiiragi283.core.api.storage.amount.HTAmountSlot , hiiragi283.core.api.storage.amount.HTAmountView , hiiragi283.core.api.storage.energy.HTEnergyBattery , net.neoforged.neoforge.common.util.INBTSerializable

    
    public class HTComponentEnergyBattery
    extends HTEnergyBattery.Basic implements HTDataSerializable.Empty
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit setAmount(Integer amount) 保持しているリソースの量を変更します。
      Integer getAmount() 保持している量を返します。
      Integer getCapacity() 容量を返します。
      final static HTComponentEnergyBattery create(HTComponentHandler.ContainerContext context, Integer capacity, Predicate<HTStorageAccess> canExtract, Predicate<HTStorageAccess> canInsert)
      • Methods inherited from class hiiragi283.core.api.storage.energy.HTEnergyBattery.Basic

        toString
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountSlot.Basic

        extract, insert
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView

        getLevelAsFloat, getLevelAsFraction, getNeeded
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountSlot

        isEmpty
      • Methods inherited from class hiiragi283.core.api.HTDataSerializable

        serializeNBT
      • Methods inherited from class net.neoforged.neoforge.common.util.INBTSerializable

        deserializeNBT
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait