use of com.mcmoddev.lib.material.IMMDObject in project BaseMetals by MinecraftModDevelopmentMods.
the class MithrilProperty method hasEffect.
@Override
public boolean hasEffect(ItemStack stack, EntityPlayer player) {
MMDMaterial mat = Materials.getMaterialByName(MaterialNames.MITHRIL);
boolean rv = (stackIsArmorMaterial(stack, mat) && ((stack.getItem() instanceof IMMDObject) && (((IMMDObject) stack.getItem()).getMMDMaterial() == mat))) && (countArmorPieces(Materials.getMaterialByName(MaterialNames.MITHRIL), player) > 0);
return rv;
}
use of com.mcmoddev.lib.material.IMMDObject in project BaseMetals by MinecraftModDevelopmentMods.
the class StarSteelProperty method hasEffect.
@Override
public boolean hasEffect(ItemStack stack, EntityPlayer player) {
MMDMaterial mat = Materials.getMaterialByName(MaterialNames.STARSTEEL);
boolean rv = (stackIsArmorMaterial(stack, mat) && ((stack.getItem() instanceof IMMDObject) && (((IMMDObject) stack.getItem()).getMMDMaterial() == mat))) && (countArmorPieces(Materials.getMaterialByName(MaterialNames.STARSTEEL), player) > 0);
return rv;
}
use of com.mcmoddev.lib.material.IMMDObject in project BaseMetals by MinecraftModDevelopmentMods.
the class AdamantineProperty method hasEffect.
@Override
public boolean hasEffect(ItemStack stack, EntityPlayer player) {
MMDMaterial mat = Materials.getMaterialByName(MaterialNames.ADAMANTINE);
boolean rv = (stackIsArmorMaterial(stack, mat) && ((stack.getItem() instanceof IMMDObject) && (((IMMDObject) stack.getItem()).getMMDMaterial() == mat))) && (countArmorPieces(Materials.getMaterialByName(MaterialNames.ADAMANTINE), player) > 0);
return rv;
}
use of com.mcmoddev.lib.material.IMMDObject in project BaseMetals by MinecraftModDevelopmentMods.
the class LeadProperty method hasEffect.
@Override
public boolean hasEffect(ItemStack stack, EntityPlayer player) {
MMDMaterial mat = Materials.getMaterialByName(MaterialNames.LEAD);
boolean rv = (stackIsArmorMaterial(stack, mat) && ((stack.getItem() instanceof IMMDObject) && (((IMMDObject) stack.getItem()).getMMDMaterial() == mat))) && (countArmorPieces(Materials.getMaterialByName(MaterialNames.LEAD), player) > 0);
return rv;
}
use of com.mcmoddev.lib.material.IMMDObject in project BaseMetals by MinecraftModDevelopmentMods.
the class AquariumProperty method hasEffect.
@Override
public boolean hasEffect(ItemStack stack, EntityPlayer player) {
MMDMaterial mat = Materials.getMaterialByName(MaterialNames.AQUARIUM);
boolean rv = (stackIsArmorMaterial(stack, mat) && ((stack.getItem() instanceof IMMDObject) && (((IMMDObject) stack.getItem()).getMMDMaterial() == mat))) && (countArmorPieces(Materials.getMaterialByName(MaterialNames.AQUARIUM), player) > 0);
return rv;
}
Aggregations