Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Creates a ZIP file from multiple files (flatten)
Link copied to clipboard
fun <T : ItemSlot> Iterable<T>.findBestToolToMineBlock(blockState: BlockState, ignoreDurability: Boolean = true, predicate: BiPredicate<ItemStack, BlockState> = BiPredicate { _, _ -> true }): T?
Finds the best slot in this iterable for mining blockState using mc.player as baseline.
Link copied to clipboard
Link copied to clipboard
Joins a list of Component into a single Component with the given separator.
fun <T> Collection<T>.joinToText(separator: Component, prefix: Component? = null, postfix: Component? = null, transform: Function<in T, out Component>): Component
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Iterable<ItemSlot>.mergeableCapacityFor(itemStack: ItemStack, blacklist: Collection<ItemSlot>? = null): Int
Exact total capacity of this iterable to store itemStack (empty slots count as ItemStack.maxStackSize, mergeable slots as their remaining space). Contract: the slot currently holding itemStack must NOT be part of this iterable, otherwise its own remaining capacity would be double-counted and the result overestimated.
Link copied to clipboard
Link copied to clipboard