Search in sources :

Example 1 with IMMDObject

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;
}
Also used : IMMDObject(com.mcmoddev.lib.material.IMMDObject) MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 2 with IMMDObject

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;
}
Also used : IMMDObject(com.mcmoddev.lib.material.IMMDObject) MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 3 with IMMDObject

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;
}
Also used : IMMDObject(com.mcmoddev.lib.material.IMMDObject) MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 4 with IMMDObject

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;
}
Also used : IMMDObject(com.mcmoddev.lib.material.IMMDObject) MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 5 with IMMDObject

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;
}
Also used : IMMDObject(com.mcmoddev.lib.material.IMMDObject) MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Aggregations

IMMDObject (com.mcmoddev.lib.material.IMMDObject)5 MMDMaterial (com.mcmoddev.lib.material.MMDMaterial)5