Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Add getDrops to BlockState and isPreferredTool to BlockData

Open MelnCat opened this issue 3 years ago • 1 comments

This adds the getDrops and isPreferredTool methods to BlockState, as only Block had these methods before. It was not possible to get the drops of a BlockState before. The getDrops and isPreferredTool methods in Block actually only used the blockState, so this change was mostly just copied from Block.

MelnCat avatar Aug 13 '22 06:08 MelnCat

Requested changes added:

  • Inlined imports
  • Made the return type of getDrops immutable
  • Removed the private isPreferredTool

MelnCat avatar Aug 14 '22 19:08 MelnCat