use of net.silentchaos512.gear.gear.material.CustomCompoundMaterial in project Silent-Gear by SilentChaos512.
the class CustomMaterialItem method fillItemCategory.
@Override
public void fillItemCategory(CreativeModeTab group, NonNullList<ItemStack> items) {
if (allowdedIn(group)) {
items.add(create(LazyMaterialInstance.of(Const.Materials.EXAMPLE)));
for (IMaterial material : MaterialManager.getValues()) {
if (material instanceof CustomCompoundMaterial) {
IMaterialInstance mat = MaterialInstance.of(material);
ItemStack stack = create(mat);
if (mat.getIngredient().test(stack)) {
items.add(stack);
}
}
}
}
}
Aggregations