mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 06:25:11 +00:00
IItemCustom:
-Added setArmorType
This commit is contained in:
1 parent
4b7d8e744e
commit
b51c47c2d4
2 files changed
+3
-1
No files matched your search
@@ -11,6 +11,8 @@ public interface IItemCustom extends IItemStack, IScriptHandler {
|
||||
|
||||
void setTexture(String var2);
|
||||
|
||||
void setArmorType(int armorType);
|
||||
|
||||
int getArmorType();
|
||||
|
||||
void setIsTool(boolean isTool);
|
||||
|
||||
@@ -168,7 +168,7 @@ public class ScriptCustomItem extends ScriptItemStack implements IItemCustom, IS
|
||||
return this.stackSize;
|
||||
}
|
||||
|
||||
public void setArmorType(int armorType){
|
||||
public void setArmorType(int armorType) {
|
||||
this.armorType = armorType;
|
||||
saveItemData();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user