mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-21 12:42:36 +00:00
Basics of the farming block starting to work (wheat, potatoes, carrots + nether wart)
This commit is contained in:
1 parent
0513f492e8
commit
7dcd024c18
20 files changed
+670
-233
No files matched your search
@@ -281,4 +281,12 @@ public class Util {
|
||||
}
|
||||
|
||||
|
||||
public static boolean isType(ItemStack stack, Class<? extends Item> class1) {
|
||||
if(stack == null || class1 == null) {
|
||||
return false;
|
||||
}
|
||||
return class1.isAssignableFrom(stack.getItem().getClass());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user