ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/recipe/TreasureChestLoot.java

30 lines
877 B
Java
Raw Normal View History

2016-01-05 04:47:35 +01:00
/*
2016-05-16 22:52:27 +02:00
* This file ("TreasureChestLoot.java") is part of the Actually Additions mod for Minecraft.
2016-01-05 04:47:35 +01:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http://ellpeck.de/actaddlicense
2016-01-05 04:47:35 +01:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2017-01-01 16:23:26 +01:00
* © 2015-2017 Ellpeck
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;
}
}