Removed Deprecated API

This commit is contained in:
shedaniel
2021-11-14 02:32:14 +08:00
parent 52d3bad6f8
commit a7ecdcf578
5 changed files with 1 additions and 29 deletions

View File

@@ -20,9 +20,7 @@
package dev.architectury.registry.block.fabric;
import dev.architectury.registry.block.BlockProperties;
import dev.architectury.registry.block.ToolType;
import net.fabricmc.fabric.impl.object.builder.BlockSettingsInternals;
import net.fabricmc.fabric.impl.object.builder.FabricBlockInternals;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.material.Material;
@@ -71,11 +69,5 @@ public class BlockPropertiesImpl {
public Impl(Material material, Function<BlockState, MaterialColor> function) {
super(material, function);
}
@Override
public BlockProperties tool(ToolType type, int level) {
FabricBlockInternals.computeExtraData(this).addMiningLevel(type.fabricTag.get(), level);
return this;
}
}
}