2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.api.recipe;
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.util.WeightedRandom;
|
|
|
|
|
2019-05-02 09:10:29 +02:00
|
|
|
public class TreasureChestLoot extends WeightedRandom.Item {
|
2016-01-05 04:47:35 +01:00
|
|
|
|
2016-05-19 20:05:12 +02:00
|
|
|
public final ItemStack returnItem;
|
|
|
|
public final int minAmount;
|
|
|
|
public final int maxAmount;
|
2016-01-05 04:47:35 +01:00
|
|
|
|
2019-05-02 09:10:29 +02:00
|
|
|
public TreasureChestLoot(ItemStack returnItem, int chance, int minAmount, int maxAmount) {
|
2016-01-05 04:47:35 +01:00
|
|
|
super(chance);
|
|
|
|
this.returnItem = returnItem;
|
|
|
|
this.minAmount = minAmount;
|
|
|
|
this.maxAmount = maxAmount;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|