use of mekanism.common.integration.crafttweaker.chemical.CrTChemicalStack.CrTGasStack in project Mekanism by mekanism.
the class PressurizedReactionRecipeManager method getAction.
@Override
protected ActionAddMekanismRecipe getAction(PressurizedReactionRecipe recipe) {
return new ActionAddMekanismRecipe(recipe) {
@Override
protected String describeOutputs() {
Pair<List<@NonNull ItemStack>, @NonNull GasStack> output = getRecipe().getOutputDefinition();
StringBuilder builder = new StringBuilder();
List<ItemStack> itemOutputs = output.getLeft();
if (!itemOutputs.isEmpty()) {
builder.append("item: ").append(CrTUtils.describeOutputs(itemOutputs, ItemStackHelper::getCommandString));
}
GasStack gasOutput = output.getRight();
if (!gasOutput.isEmpty()) {
if (!itemOutputs.isEmpty()) {
builder.append("; ");
}
builder.append("gas: ").append(new CrTGasStack(gasOutput));
}
return builder.toString();
}
};
}
use of mekanism.common.integration.crafttweaker.chemical.CrTChemicalStack.CrTGasStack in project Mekanism by mekanism.
the class RotaryRecipeManager method getAction.
@Override
protected ActionAddMekanismRecipe getAction(RotaryRecipe recipe) {
return new ActionAddMekanismRecipe(recipe) {
@Override
protected String describeOutputs() {
RotaryRecipe recipe = getRecipe();
StringBuilder builder = new StringBuilder();
if (recipe.hasFluidToGas()) {
builder.append(CrTUtils.describeOutputs(recipe.getGasOutputDefinition(), CrTGasStack::new)).append(" for fluid to gas");
}
if (recipe.hasGasToFluid()) {
if (recipe.hasFluidToGas()) {
builder.append(" and ");
}
builder.append(CrTUtils.describeOutputs(recipe.getFluidOutputDefinition(), MCFluidStack::new)).append(" for gas to fluid");
}
return builder.toString();
}
};
}
Aggregations