Item model patterns
This commit is contained in:
parent
73a0cb890c
commit
d9a60fc7f2
15 changed files with 48 additions and 50 deletions
|
@ -9,8 +9,10 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.item.PickaxeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
import net.minecraft.tag.Tag;
|
||||
import ru.betterend.patterns.Patterned;
|
||||
import ru.betterend.patterns.Patterns;
|
||||
|
||||
public class EndPickaxe extends PickaxeItem implements DynamicAttributeTool {
|
||||
public class EndPickaxe extends PickaxeItem implements DynamicAttributeTool, Patterned {
|
||||
|
||||
public EndPickaxe(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
|
@ -23,4 +25,9 @@ public class EndPickaxe extends PickaxeItem implements DynamicAttributeTool {
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getModelPattern(String name) {
|
||||
return Patterns.createJson(Patterns.ITEM_HANDHELD, name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue