mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-18 19:29:05 +00:00
feat: clean up
This commit is contained in:
1 parent
0f1f888299
commit
fa3ba7542c
55 files changed
+611
-490
No files matched your search
@@ -127,6 +127,10 @@ public class ItemStackHelper {
|
||||
}
|
||||
|
||||
|
||||
public static boolean isEmpty(ItemStack stack) {
|
||||
return stack == null || stack == EMPTY_ITEM_STACK || stack.getItem() == EMPTY_ITEM;
|
||||
}
|
||||
|
||||
public static boolean isTypeEqual(@Nullable ItemStack one, @Nullable ItemStack two) {
|
||||
return one != null && two != null && one.getItem() == two.getItem() && getMetadata(one) == getMetadata(two) &&
|
||||
NBT.equalsIgnoreJEC(one.getTagCompound(), two.getTagCompound());
|
||||
|
||||
Reference in new issue
Block a user