mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-28 12:25:59 +00:00
Optimize Imports
This commit is contained in:
1 parent
61dc056735
commit
9c541999f3
264 files changed
+2848
-489
No files matched your search
@@ -144,39 +144,39 @@ public class ItemNpcTool extends Item {
|
||||
}
|
||||
|
||||
public static boolean isPaintbrush(ItemStack itemStack) {
|
||||
if(itemStack == null)
|
||||
if (itemStack == null)
|
||||
return false;
|
||||
|
||||
if(itemStack.getItem() == null)
|
||||
if (itemStack.getItem() == null)
|
||||
return false;
|
||||
|
||||
if(!(itemStack.getItem() instanceof ItemNpcTool))
|
||||
if (!(itemStack.getItem() instanceof ItemNpcTool))
|
||||
return false;
|
||||
|
||||
return itemStack.getItemDamage() == 1;
|
||||
}
|
||||
|
||||
public static boolean isHammer(ItemStack itemStack) {
|
||||
if(itemStack == null)
|
||||
if (itemStack == null)
|
||||
return false;
|
||||
|
||||
if(itemStack.getItem() == null)
|
||||
if (itemStack.getItem() == null)
|
||||
return false;
|
||||
|
||||
if(!(itemStack.getItem() instanceof ItemNpcTool))
|
||||
if (!(itemStack.getItem() instanceof ItemNpcTool))
|
||||
return false;
|
||||
|
||||
return itemStack.getItemDamage() == 0;
|
||||
}
|
||||
|
||||
public static boolean isMagicBook(ItemStack itemStack) {
|
||||
if(itemStack == null)
|
||||
if (itemStack == null)
|
||||
return false;
|
||||
|
||||
if(itemStack.getItem() == null)
|
||||
if (itemStack.getItem() == null)
|
||||
return false;
|
||||
|
||||
if(!(itemStack.getItem() instanceof ItemNpcTool))
|
||||
if (!(itemStack.getItem() instanceof ItemNpcTool))
|
||||
return false;
|
||||
|
||||
return itemStack.getItemDamage() == 2;
|
||||
|
||||
Reference in new issue
Block a user