Search in sources :

Example 1 with PlayerContainerService

use of dte.employme.containers.service.PlayerContainerService in project EmployMe by DavidTheExplorer.

the class ItemsReward method deserialize.

@SuppressWarnings("unchecked")
public static ItemsReward deserialize(Map<String, Object> serialized) {
    List<ItemStack> items = (List<ItemStack>) serialized.get("Items");
    PlayerContainerService playerContainerService = ServiceLocator.getInstance(PlayerContainerService.class);
    return new ItemsReward(items, playerContainerService);
}
Also used : List(java.util.List) ItemStack(org.bukkit.inventory.ItemStack) PlayerContainerService(dte.employme.containers.service.PlayerContainerService)

Aggregations

PlayerContainerService (dte.employme.containers.service.PlayerContainerService)1 List (java.util.List)1 ItemStack (org.bukkit.inventory.ItemStack)1