Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean compare(ItemStack original, ItemStack compare)
- {
- if(Comparator.compare(original.getType(), compare.getType())) //Compare materials
- {
- if(Comparator.compare(original.getData().getData(), compare.getData().getData())) //Compare metadata ID
- {
- if(Comparator.compare(hasMeta(original), hasMeta(compare))) //Make sure they both DO or DO NOT have meta.
- {
- if(hasMeta(original))
- {
- if(Comparator.compare(getName(original), getName(compare)))
- {
- if(Comparator.compare(hasLore(original), hasLore(compare)))
- {
- if(hasLore(original))
- {
- List<String> oLore = getLore(original);
- List<String> cLore = getLore(compare);
- return cLore.equals(oLore);
- }
- else
- {
- return true;
- }
- }
- }
- }
- else
- {
- return true;
- }
- }
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement