use of slimeknights.tconstruct.library.tools.item.IModifiableDisplay in project TinkersConstruct by SlimeKnights.
the class ArmorDyeingRecipe method getRecipes.
@Override
public List<IDisplayModifierRecipe> getRecipes() {
if (displayRecipes == null) {
List<ItemStack> toolInputs = Arrays.stream(this.toolRequirement.getItems()).map(stack -> {
if (stack.getItem() instanceof IModifiableDisplay) {
return ((IModifiableDisplay) stack.getItem()).getRenderTool();
}
return stack;
}).toList();
ModifierEntry result = new ModifierEntry(TinkerModifiers.dyed.get(), 1);
displayRecipes = Arrays.stream(DyeColor.values()).map(dye -> new DisplayRecipe(result, toolInputs, dye)).collect(Collectors.toList());
}
return displayRecipes;
}
Aggregations