-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ModArmorMaterial enum boilerplate
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
src/main/java/pl/xyundy/squaredadditions/item/ModArmorMaterial.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |