Fixed Sentient Sword
Fixed the sentient sword so that it now extends `SwordItem`
This commit is contained in:
parent
6f6f2049c1
commit
bacaf114fb
2 changed files with 66 additions and 2 deletions
|
@ -0,0 +1,62 @@
|
|||
package wayoftime.bloodmagic.common.item;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import net.minecraft.item.IItemTier;
|
||||
import net.minecraft.item.crafting.Ingredient;
|
||||
import net.minecraft.util.LazyValue;
|
||||
|
||||
public enum BMItemTier implements IItemTier
|
||||
{
|
||||
SENTIENT(4, 512, 6.0F, 2.0F, 50, () -> {
|
||||
return Ingredient.fromItems(BloodMagicItems.IMBUED_SLATE.get());
|
||||
});
|
||||
|
||||
private final int harvestLevel;
|
||||
private final int maxUses;
|
||||
private final float efficiency;
|
||||
private final float attackDamage;
|
||||
private final int enchantability;
|
||||
private final LazyValue<Ingredient> repairMaterial;
|
||||
|
||||
private BMItemTier(int harvestLevelIn, int maxUsesIn, float efficiencyIn, float attackDamageIn, int enchantabilityIn, Supplier<Ingredient> repairMaterialIn)
|
||||
{
|
||||
this.harvestLevel = harvestLevelIn;
|
||||
this.maxUses = maxUsesIn;
|
||||
this.efficiency = efficiencyIn;
|
||||
this.attackDamage = attackDamageIn;
|
||||
this.enchantability = enchantabilityIn;
|
||||
this.repairMaterial = new LazyValue<>(repairMaterialIn);
|
||||
}
|
||||
|
||||
public int getMaxUses()
|
||||
{
|
||||
return this.maxUses;
|
||||
}
|
||||
|
||||
public float getEfficiency()
|
||||
{
|
||||
return this.efficiency;
|
||||
}
|
||||
|
||||
public float getAttackDamage()
|
||||
{
|
||||
return this.attackDamage;
|
||||
}
|
||||
|
||||
public int getHarvestLevel()
|
||||
{
|
||||
return this.harvestLevel;
|
||||
}
|
||||
|
||||
public int getEnchantability()
|
||||
{
|
||||
return this.enchantability;
|
||||
}
|
||||
|
||||
public Ingredient getRepairMaterial()
|
||||
{
|
||||
return this.repairMaterial.getValue();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue