Fixed the last of the model errors
This commit is contained in:
parent
3b173ecf17
commit
37ec0582eb
36 changed files with 176 additions and 121 deletions
|
@ -170,18 +170,15 @@ public class ItemSacrificialDagger extends Item implements IMeshProvider {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public ItemMeshDefinition getMeshDefinition() {
|
||||
return new ItemMeshDefinition() {
|
||||
@Override
|
||||
public ModelResourceLocation getModelLocation(ItemStack stack) {
|
||||
String variant = "type=normal";
|
||||
if (stack.getItemDamage() != 0)
|
||||
variant = "type=creative";
|
||||
return stack -> {
|
||||
String variant = "type=normal";
|
||||
if (stack.getItemDamage() != 0)
|
||||
variant = "type=creative";
|
||||
|
||||
if (canUseForSacrifice(stack))
|
||||
variant = "type=ceremonial";
|
||||
if (canUseForSacrifice(stack))
|
||||
variant = "type=ceremonial";
|
||||
|
||||
return new ModelResourceLocation(new ResourceLocation(BloodMagic.MODID, "item/ItemSacrificialDagger"), variant);
|
||||
}
|
||||
return new ModelResourceLocation(getRegistryName(), variant);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue