use of icbm.classic.prefab.item.ItemStackCapProvider in project ICBM-Classic by BuiltBrokenModding.
the class ItemMissile method initCapabilities.
@Override
@Nullable
public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(ItemStack stack, @Nullable NBTTagCompound nbt) {
ItemStackCapProvider provider = new ItemStackCapProvider(stack);
// provider.add("missile", ICBMClassicAPI.MISSILE_CAPABILITY, new CapabilityMissile()); //TODO create an itemstack version
provider.add(NBTConstants.EXPLOSIVE, ICBMClassicAPI.EXPLOSIVE_CAPABILITY, new CapabilityExplosiveStack(stack));
return provider;
}
use of icbm.classic.prefab.item.ItemStackCapProvider 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