/** * Workaround for dual-materials like crossbow-bolts. * E.g. Obsidian is not an "acceptable" material because those are only shaft materials * but we still need to generate the texture for it. */ default boolean canUseMaterialForRendering(Material mat) { return canUseMaterial(mat); }
protected boolean isValidSubitem(Item toolpart) { if(toolpart instanceof IToolPart) { for(Material material : TinkerRegistry.getAllMaterials()) { if(isValidSubitemMaterial(material) && ((IToolPart) toolpart).canUseMaterial(material)) { return true; } } return false; } return true; }
return null; if(output.getItem() instanceof IToolPart && !((IToolPart) output.getItem()).canUseMaterial(foundMaterial)) { return null;
continue; if(!toolPart.canUseMaterial(material)) { continue;