28 lines
No EOL
872 B
Java
28 lines
No EOL
872 B
Java
package MysticWorld.WorldGen;
|
|
|
|
import java.util.Random;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.util.WeightedRandomChestContent;
|
|
import net.minecraftforge.common.ChestGenHooks;
|
|
import MysticOres.Items.ItemHandler;
|
|
import MysticWorld.Items.ItemHandler$1;
|
|
|
|
public class MysticHutUtil
|
|
{
|
|
public MysticHutUtil()
|
|
{
|
|
addLoot();
|
|
}
|
|
|
|
public static ChestGenHooks MysticHutChest;
|
|
|
|
public static void addLoot()
|
|
{
|
|
MysticHutChest = new ChestGenHooks("MysticHutChest", new WeightedRandomChestContent[0], 1, 15);
|
|
MysticHutChest.addItem(new WeightedRandomChestContent(new ItemStack(ItemHandler.Resource, 1, 13), 0, 1, 1000));
|
|
MysticHutChest.addItem(new WeightedRandomChestContent(new ItemStack(ItemHandler.Resource, 1, 9), 0, 1, 1000));
|
|
MysticHutChest.addItem(new WeightedRandomChestContent(new ItemStack(ItemHandler.Resource, 1, 4), 0, 1, 1000));
|
|
}
|
|
}
|
|
|