Package net.fabricmc.yarn.constants
Class MiningLevels
java.lang.Object
net.fabricmc.yarn.constants.MiningLevels
Constants of Mining Levels.
 
Mining levels are used by blocks to determine the strength of the tools required to successfully harvest them.
 
All tool materials have an assigned mining level. If a tool's mining level is equal to or greater than the block's,
 the tool will apply its efficiency bonus and the block will drop its loot table.
 
Blocks without mining levels, or items that aren't tools, use HAND.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intBlocks with this level require a Diamond tool or better to harvest.static final intBlocks with this level do not require a tool to harvest.static final intBlocks with this level require an Iron tool or better to harvest.static final intBlocks with this level require a Netherite tool or better to harvest.static final intBlocks with this level require a Stone tool or better to harvest.static final intBlocks with this level require a Wooden tool or better to harvest.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
HANDpublic static final int HANDBlocks with this level do not require a tool to harvest.
 This is the default level for blocks and items.- See Also:
 
- 
WOODpublic static final int WOODBlocks with this level require a Wooden tool or better to harvest.
 In addition to Wooden Tools, Golden Tools also use this level.- See Also:
 
- 
STONEpublic static final int STONEBlocks with this level require a Stone tool or better to harvest.- See Also:
 
- 
IRONpublic static final int IRONBlocks with this level require an Iron tool or better to harvest.- See Also:
 
- 
DIAMONDpublic static final int DIAMONDBlocks with this level require a Diamond tool or better to harvest.- See Also:
 
- 
NETHERITEpublic static final int NETHERITEBlocks with this level require a Netherite tool or better to harvest.- See Also:
 
 
- 
- 
Constructor Details- 
MiningLevelsprivate MiningLevels()
 
-