Search in sources :

Example 1 with LanternGridInventory

use of org.lanternpowered.server.inventory.type.LanternGridInventory in project LanternServer by LanternPowered.

the class CarriedInventoryTest method test.

@Test
public void test() {
    final InventoryConstructorFactory factory = InventoryConstructorFactory.get();
    final InventoryConstructor<LanternGridInventory> constructor = factory.getConstructor(LanternGridInventory.class);
    System.out.println(constructor.construct(false).getClass().getName());
    System.out.println(constructor.construct(true).getClass().getName());
}
Also used : InventoryConstructorFactory(org.lanternpowered.server.inventory.constructor.InventoryConstructorFactory) LanternGridInventory(org.lanternpowered.server.inventory.type.LanternGridInventory) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 InventoryConstructorFactory (org.lanternpowered.server.inventory.constructor.InventoryConstructorFactory)1 LanternGridInventory (org.lanternpowered.server.inventory.type.LanternGridInventory)1