Skip to content

Commit

Permalink
Add ModArmorMaterial enum boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
xYundy committed Apr 12, 2024
1 parent c3878e2 commit 8db7d2f
Showing 1 changed file with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package pl.xyundy.squaredadditions.item;


import net.minecraft.item.ArmorItem;
import net.minecraft.item.ArmorMaterial;
import net.minecraft.recipe.Ingredient;
import net.minecraft.sound.SoundEvent;

public enum ModArmorMaterial implements ArmorMaterial {
;

@Override
public int getDurability(ArmorItem.Type type) {
return 0;
}

@Override
public int getProtection(ArmorItem.Type type) {
return 0;
}

@Override
public int getEnchantability() {
return 0;
}

@Override
public SoundEvent getEquipSound() {
return null;
}

@Override
public Ingredient getRepairIngredient() {
return null;
}

@Override
public String getName() {
return "";
}

@Override
public float getToughness() {
return 0;
}

@Override
public float getKnockbackResistance() {
return 0;
}
}

0 comments on commit 8db7d2f

Please sign in to comment.