Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onCraftItem(CraftItemEvent e)
- {
- System.out.println("init");
- ItemStack[] stacks = e.getInventory().getMatrix(); // for some reason
- // has 10 elements
- // always
- //the above always has 10 elements which most likely
- //means that some will be null of nothing is contained
- System.out.println(stacks.length);
- for (ItemStack i : stacks)
- {
- if(i == null)
- continue;
- System.out.println(i.getItemMeta().getDisplayName());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement