Registries, Base blocks with entities

This commit is contained in:
Aleksey 2021-05-27 13:55:03 +03:00
parent 5aeee09cfc
commit 8ab247f861
45 changed files with 1684 additions and 40 deletions

View file

@ -29,11 +29,9 @@ import ru.bclib.client.models.PatternsHelper;
public class BaseAnvilBlock extends AnvilBlock implements BlockModelProvider {
private static final IntegerProperty DESTRUCTION = BlockProperties.DESTRUCTION;
protected final int level;
public BaseAnvilBlock(MaterialColor color, int level) {
public BaseAnvilBlock(MaterialColor color) {
super(FabricBlockSettings.copyOf(Blocks.ANVIL).materialColor(color));
this.level = level;
}
@Override
@ -45,10 +43,6 @@ public class BaseAnvilBlock extends AnvilBlock implements BlockModelProvider {
public IntegerProperty getDestructionProperty() {
return DESTRUCTION;
}
public int getCraftingLevel() {
return level;
}
@Override
public List<ItemStack> getDrops(BlockState state, LootContext.Builder builder) {