Search in sources :

Example 1 with EnergyBufferLimited

use of icbm.classic.lib.energy.storage.EnergyBufferLimited in project ICBM-Classic by BuiltBrokenModding.

the class ItemBattery method initCapabilities.

@Override
public ICapabilityProvider initCapabilities(ItemStack stack, @Nullable NBTTagCompound nbt) {
    ItemStackCapProvider provider = new ItemStackCapProvider(stack);
    provider.add("battery", CapabilityEnergy.ENERGY, new EnergyBufferLimited(ConfigBattery.BATTERY_CAPACITY, ConfigBattery.BATTERY_INPUT_LIMIT, ConfigBattery.BATTERY_OUTPUT_LIMIT));
    return provider;
}
Also used : ItemStackCapProvider(icbm.classic.prefab.item.ItemStackCapProvider) EnergyBufferLimited(icbm.classic.lib.energy.storage.EnergyBufferLimited)

Aggregations

EnergyBufferLimited (icbm.classic.lib.energy.storage.EnergyBufferLimited)1 ItemStackCapProvider (icbm.classic.prefab.item.ItemStackCapProvider)1