use of com.cjm721.overloaded.item.functional.armor.ItemMultiHelmet in project Overloaded by CJ-MC-Mods.
the class ArmorEventHandler method getHelmetDataStorage.
@Nonnull
private static IGenericDataStorage getHelmetDataStorage(PlayerEntity player) {
for (ItemStack stack : player.inventory.armor) {
if (stack.getItem() instanceof ItemMultiHelmet) {
IGenericDataStorage cap = stack.getCapability(GENERIC_DATA_STORAGE).orElse(new GenericDataStorage());
cap.suggestUpdate();
return cap;
}
}
return new GenericDataStorage();
}
use of com.cjm721.overloaded.item.functional.armor.ItemMultiHelmet in project Overloaded by CJ-MC-Mods.
the class ModItems method init.
public static void init() {
linkingCard = registerItem(new ItemLinkingCard());
multiTool = registerItem(new ItemMultiTool());
energyCore = registerItem(new ItemEnergyCore());
itemCore = registerItem(new ItemItemCore());
fluidCore = registerItem(new ItemFluidCore());
customHelmet = registerItem(new ItemMultiHelmet());
customChestplate = registerItem(new ItemMultiChestplate());
customLeggins = registerItem(new ItemMultiLeggings());
customBoots = registerItem(new ItemMultiBoots());
settingsEditor = registerItem(new ItemSettingEditor());
rayGun = registerItem(new ItemRayGun());
railgun = registerItem(new ItemRailGun());
if (OverloadedConfig.INSTANCE.developmentConfig.wipStuff) {
// amountSelector = registerItem(new ItemAmountSelector());
for (int i = 0; i < 10; i++) {
registerItem(new InDevItem("in_dev_item_" + i));
}
}
}
Aggregations