This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Query, QueryCache, QueryClient, QueryFilters} from "@tanstack/react-query"; | |
import {InfiniteData} from "@tanstack/query-core/build/lib/types"; | |
export type InfiniteQueryData<U, V> = InfiniteData<U | V | undefined>; | |
export type InfinitePageMapperParam<OldPageT, NewPageT> = { | |
page: OldPageT | NewPageT, | |
index: number, | |
param?: unknown, | |
query?: Query<unknown, unknown, InfiniteQueryData<OldPageT, NewPageT>>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Converts the player inventory to a String array of Base64 strings. First string is the content and second string is the armor. | |
* | |
* @param playerInventory to turn into an array of strings. | |
* @return Array of strings: [ main content, armor content ] | |
* @throws IllegalStateException | |
*/ | |
public static String[] playerInventoryToBase64(PlayerInventory playerInventory) throws IllegalStateException { | |
//get the main content part, this doesn't return the armor | |
String content = toBase64(playerInventory); |