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;
}
Aggregations