Event Hook Registry
A special java.util.concurrent.CopyOnWriteArrayList that stores EventHooks.
All elements are ordered descending by EventHook.priority.
Equality of EventHooks is defined by reference equality.
Functions
Link copied to clipboard
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
Link copied to clipboard