Add support for Tuff

This commit is contained in:
nossr50
2021-06-06 20:41:00 -07:00
parent b569b9456e
commit c3d86ba6c5
4 changed files with 8 additions and 4 deletions

View File

@ -159,7 +159,7 @@ public final class BlockUtils {
* @return true if the block should affected by Giga Drill Breaker, false
* otherwise
*/
public static boolean affectedByGigaDrillBreaker(BlockState blockState) {
public static boolean affectedByGigaDrillBreaker(@NotNull BlockState blockState) {
if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.EXCAVATION, blockState.getBlockData()))
return true;
return mcMMO.getModManager().isCustomExcavationBlock(blockState);
@ -171,7 +171,7 @@ public final class BlockUtils {
* @param blockState The {@link BlockState} of the block to check
* @return true if the block is a log, false otherwise
*/
public static boolean hasWoodcuttingXP(BlockState blockState) {
public static boolean hasWoodcuttingXP(@NotNull BlockState blockState) {
return ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.WOODCUTTING, blockState.getBlockData());
}
@ -181,11 +181,11 @@ public final class BlockUtils {
* @param blockState The {@link BlockState} of the block to check
* @return true if the block is a leaf, false otherwise
*/
public static boolean isNonWoodPartOfTree(BlockState blockState) {
public static boolean isNonWoodPartOfTree(@NotNull BlockState blockState) {
return mcMMO.getMaterialMapStore().isTreeFellerDestructible(blockState.getType());
}
public static boolean isNonWoodPartOfTree(Material material) {
public static boolean isNonWoodPartOfTree(@NotNull Material material) {
return mcMMO.getMaterialMapStore().isTreeFellerDestructible(material);
}

View File

@ -514,6 +514,7 @@ Bonus_Drops:
Peony: true
Lily_Of_The_Valley: true
Mining:
Tuff: true
Deepslate_Redstone_Ore: true
Deepslate_Copper_Ore: true
Deepslate_Coal_Ore: true

View File

@ -382,6 +382,7 @@ Experience_Values:
Lily_Of_The_Valley: 150
Wither_Rose: 500
Mining:
Tuff: 10
Copper_Ore: 1400
Deepslate_Copper_Ore: 1900
Deepslate: 30