public static bool TryGiveItemstack(this IPlayerInventoryManager manager, ItemStack[] stacks) { foreach (var val in stacks) { if (manager.TryGiveItemstack(val)) { continue; } return(false); } return(true); }
public static bool TryGiveItemstack(this IPlayerInventoryManager manager, JsonItemStack[] stacks) { return(manager.TryGiveItemstack(stacks.ResolvedStacks(manager.ActiveHotbarSlot.Inventory.Api.World))); }