Search in sources :

Example 1 with BaublesInventoryWrapper

use of baubles.api.inv.BaublesInventoryWrapper in project Pearcel-Mod by MiningMark48.

the class BaublesApi method getBaubles.

/**
	 * Retrieves the baubles capability handler wrapped as a IInventory for the supplied player
	 */
@Deprecated
public static IInventory getBaubles(EntityPlayer player) {
    IBaublesItemHandler handler = player.getCapability(BaublesCapabilities.CAPABILITY_BAUBLES, null);
    handler.setPlayer(player);
    return new BaublesInventoryWrapper(handler, player);
}
Also used : BaublesInventoryWrapper(baubles.api.inv.BaublesInventoryWrapper) IBaublesItemHandler(baubles.api.cap.IBaublesItemHandler)

Example 2 with BaublesInventoryWrapper

use of baubles.api.inv.BaublesInventoryWrapper in project ConvenientAdditions by Necr0.

the class BaublesApi method getBaubles.

/**
	 * Retrieves the baubles capability handler wrapped as a IInventory for the supplied player
	 */
@Deprecated
public static IInventory getBaubles(EntityPlayer player) {
    IBaublesItemHandler handler = player.getCapability(BaublesCapabilities.CAPABILITY_BAUBLES, null);
    handler.setPlayer(player);
    return new BaublesInventoryWrapper(handler, player);
}
Also used : BaublesInventoryWrapper(baubles.api.inv.BaublesInventoryWrapper) IBaublesItemHandler(baubles.api.cap.IBaublesItemHandler)

Example 3 with BaublesInventoryWrapper

use of baubles.api.inv.BaublesInventoryWrapper in project Random-Things by lumien231.

the class BaublesApi method getBaubles.

/**
 * Retrieves the baubles capability handler wrapped as a IInventory for the supplied player
 */
@Deprecated
public static IInventory getBaubles(EntityPlayer player) {
    IBaublesItemHandler handler = player.getCapability(BaublesCapabilities.CAPABILITY_BAUBLES, null);
    handler.setPlayer(player);
    return new BaublesInventoryWrapper(handler, player);
}
Also used : BaublesInventoryWrapper(baubles.api.inv.BaublesInventoryWrapper) IBaublesItemHandler(baubles.api.cap.IBaublesItemHandler)

Aggregations

IBaublesItemHandler (baubles.api.cap.IBaublesItemHandler)3 BaublesInventoryWrapper (baubles.api.inv.BaublesInventoryWrapper)3