Files
Blacksmith/src/main/java/net/knarcraft/blacksmith/container/SalvageResult.java
EpicKnarvik97 f3372a13a5
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
Rewrites a lot of scrapper code to fix actual and potential bugs
2024-07-29 17:53:07 +02:00

21 lines
749 B
Java

package net.knarcraft.blacksmith.container;
import net.knarcraft.blacksmith.property.SalvageMethod;
import net.knarcraft.blacksmith.property.SalvageState;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
import java.util.List;
/**
* The result of an attempted salvage
*
* @param salvageMethod <p>The salvage method used</p>
* @param salvage <p>The produced salvage</p>
* @param salvageState <p>The state of the salvage result</p>
* @param requiredAmount <p>The amount of items required for the salvage</p>
*/
public record SalvageResult(@NotNull SalvageMethod salvageMethod, @NotNull List<ItemStack> salvage,
@NotNull SalvageState salvageState, int requiredAmount) {
}