use of net.minecraft.item.ArmorMaterial in project Fabric-Tutorial-1.18.1 by Tutorials-By-Kaupenjoe.
the class ModArmorItem method evaluateArmorEffects.
private void evaluateArmorEffects(PlayerEntity player) {
for (Map.Entry<ArmorMaterial, StatusEffectInstance> entry : MATERIAL_TO_EFFECT_MAP.entrySet()) {
ArmorMaterial mapArmorMaterial = entry.getKey();
StatusEffectInstance mapStatusEffect = entry.getValue();
if (hasCorrectArmorOn(mapArmorMaterial, player)) {
addStatusEffectForMaterial(player, mapArmorMaterial, mapStatusEffect);
}
}
}
use of net.minecraft.item.ArmorMaterial in project More-Weaponry by DakotaPride.
the class ModPhantomScaleArmorItem method evaluateArmorEffects.
private void evaluateArmorEffects(PlayerEntity player) {
for (Map.Entry<ArmorMaterial, StatusEffectInstance> entry : MATERIAL_TO_EFFECT_MAP.entrySet()) {
ArmorMaterial mapArmorMaterial = entry.getKey();
StatusEffectInstance mapStatusEffect = entry.getValue();
if (hasCorrectArmorOn(mapArmorMaterial, player)) {
addStatusEffectForMaterial(player, mapArmorMaterial, mapStatusEffect);
}
}
}
use of net.minecraft.item.ArmorMaterial in project More-Weaponry by DakotaPride.
the class ModPhantomScaleArmorItemTwo method evaluateArmorEffects.
private void evaluateArmorEffects(PlayerEntity player) {
for (Map.Entry<ArmorMaterial, StatusEffect> entry : MATERIAL_TO_EFFECT_MAP.entrySet()) {
ArmorMaterial mapArmorMaterial = entry.getKey();
StatusEffect mapStatusEffect = entry.getValue();
if (hasCorrectArmorOn(mapArmorMaterial, player)) {
addStatusEffectForMaterial(player, mapArmorMaterial, mapStatusEffect);
}
}
}
use of net.minecraft.item.ArmorMaterial in project More-Weaponry by DakotaPride.
the class ElderScaleArmorItem method evaluateArmorEffects.
private void evaluateArmorEffects(PlayerEntity player) {
for (Map.Entry<ArmorMaterial, StatusEffectInstance> entry : MATERIAL_TO_EFFECT_MAP.entrySet()) {
ArmorMaterial mapArmorMaterial = entry.getKey();
StatusEffectInstance mapStatusEffect = entry.getValue();
if (hasCorrectArmorOn(mapArmorMaterial, player)) {
addStatusEffectForMaterial(player, mapArmorMaterial, mapStatusEffect);
}
}
}
use of net.minecraft.item.ArmorMaterial in project More-Weaponry by DakotaPride.
the class ShulkerShellBoots method evaluateArmorEffects.
private void evaluateArmorEffects(PlayerEntity player) {
for (Map.Entry<ArmorMaterial, StatusEffect> entry : MATERIAL_TO_EFFECT_MAP.entrySet()) {
ArmorMaterial mapArmorMaterial = entry.getKey();
StatusEffect mapStatusEffect = entry.getValue();
if (hasCorrectArmorOn(mapArmorMaterial, player)) {
addStatusEffectForMaterial(player, mapArmorMaterial, mapStatusEffect);
}
}
}
Aggregations