Search in sources :

Example 1 with DropTableImpl

use of com.skelril.nitro.droptable.DropTableImpl in project Skree by Skelril.

the class TempleOfFateInstance method setUp.

private void setUp() {
    startingPoint = new Location<>(getRegion().getExtent(), getRegion().getMinimumPoint().add(4, 11, 58));
    SlipperySingleHitDiceRoller slipRoller = new SlipperySingleHitDiceRoller();
    dropTable = new MasterDropTable(slipRoller, Lists.newArrayList(new DropTableImpl(slipRoller, Lists.newArrayList(new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack("skree:ancient_metal_fragment"))), 1))), new DropTableImpl(slipRoller, Lists.newArrayList(new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack("skree:emblem_of_hallow"))), 30))), new DropTableImpl(slipRoller, Lists.newArrayList(new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack("skree:emblem_of_the_forge"))), 30)))));
}
Also used : SimpleDropResolver(com.skelril.nitro.droptable.resolver.SimpleDropResolver) DropTableImpl(com.skelril.nitro.droptable.DropTableImpl) MasterDropTable(com.skelril.nitro.droptable.MasterDropTable) SlipperySingleHitDiceRoller(com.skelril.nitro.droptable.roller.SlipperySingleHitDiceRoller) DropTableEntryImpl(com.skelril.nitro.droptable.DropTableEntryImpl)

Example 2 with DropTableImpl

use of com.skelril.nitro.droptable.DropTableImpl in project Skree by Skelril.

the class TheButcherShopInstance method setUpDropTable.

private void setUpDropTable() {
    SlipperySingleHitDiceRoller slipRoller = new SlipperySingleHitDiceRoller();
    dropTable = new MasterDropTable(slipRoller, Lists.newArrayList(new DropTableImpl(slipRoller, Lists.newArrayList(new DropTableEntryImpl(new CofferResolver(15), 2))), new DropTableImpl(slipRoller, Lists.newArrayList(new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack(ItemTypes.COOKED_BEEF))), 3), new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack(ItemTypes.COOKED_CHICKEN))), 3), new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack(ItemTypes.COOKED_FISH))), 3), new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack(ItemTypes.COOKED_MUTTON))), 3), new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack(ItemTypes.COOKED_PORKCHOP))), 3), new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack(ItemTypes.COOKED_RABBIT))), 3), new DropTableEntryImpl(new SimpleDropResolver(Lists.newArrayList(newItemStack("skree:cooked_god_fish"))), 15)))));
}
Also used : SimpleDropResolver(com.skelril.nitro.droptable.resolver.SimpleDropResolver) DropTableImpl(com.skelril.nitro.droptable.DropTableImpl) MasterDropTable(com.skelril.nitro.droptable.MasterDropTable) CofferResolver(com.skelril.skree.content.droptable.CofferResolver) SlipperySingleHitDiceRoller(com.skelril.nitro.droptable.roller.SlipperySingleHitDiceRoller) DropTableEntryImpl(com.skelril.nitro.droptable.DropTableEntryImpl)

Aggregations

DropTableEntryImpl (com.skelril.nitro.droptable.DropTableEntryImpl)2 DropTableImpl (com.skelril.nitro.droptable.DropTableImpl)2 MasterDropTable (com.skelril.nitro.droptable.MasterDropTable)2 SimpleDropResolver (com.skelril.nitro.droptable.resolver.SimpleDropResolver)2 SlipperySingleHitDiceRoller (com.skelril.nitro.droptable.roller.SlipperySingleHitDiceRoller)2 CofferResolver (com.skelril.skree.content.droptable.CofferResolver)1