Hi,
I just went to create a block that is guaranteed to drop three different items (e.g. 1 of item a, 1 of item b and 1 of item c) when broken, which would, previously, have been done through the getDrops method in Block:
where you create a NonNullList with the items and return it.
However, this is deprecated, so now we should use the new getDrops method in Block:
This instead takes the list as an argument, and returns nothing.
How does one use this new method? How will forge have the ItemStack list to pass when it is called, or do I have to call it myself - in which case, from where? I couldn't find anything in Block, and I don't know where else to look.
Thanks