mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 11:32:20 +00:00
27 lines
604 B
Java
27 lines
604 B
Java
package noppes.npcs.scripted.item;
|
|
|
|
import net.minecraft.item.ItemArmor;
|
|
import net.minecraft.item.ItemStack;
|
|
import noppes.npcs.api.item.IItemArmor;
|
|
|
|
public class ScriptItemArmor extends ScriptItemStack implements IItemArmor {
|
|
protected ItemArmor armor;
|
|
|
|
public ScriptItemArmor(ItemStack item) {
|
|
super(item);
|
|
this.armor = (ItemArmor) item.getItem();
|
|
}
|
|
|
|
public int getType() {
|
|
return 3;
|
|
}
|
|
|
|
public int getArmorSlot() {
|
|
return armor.armorType;
|
|
}
|
|
|
|
public String getArmorMaterial() {
|
|
return armor.getArmorMaterial().toString();
|
|
}
|
|
}
|