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

@ -0,0 +1,20 @@
package ru.bclib.items.tool;
import net.fabricmc.fabric.api.tool.attribute.v1.DynamicAttributeTool;
import net.minecraft.client.renderer.block.model.BlockModel;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.SwordItem;
import net.minecraft.world.item.Tier;
import ru.bclib.client.models.ItemModelProvider;
import ru.bclib.client.models.ModelsHelper;
public class BaseSwordItem extends SwordItem implements DynamicAttributeTool, ItemModelProvider {
public BaseSwordItem(Tier material, int attackDamage, float attackSpeed, Properties settings) {
super(material, attackDamage, attackSpeed, settings);
}
@Override
public BlockModel getItemModel(ResourceLocation resourceLocation) {
return ModelsHelper.createHandheldItem(resourceLocation);
}
}