package darkknight.jewelrycraft.random; import java.util.Random; import net.minecraft.util.WeightedRandom.Item; public class WeightedRandomAffix extends Item { private final String affix; public WeightedRandomAffix(String affix, int weight) { super(weight); this.affix = affix; } public String getAffix(Random random) { return affix; } }