Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
interface ItemStackHolder
Link copied to clipboard
class PreferAverageHardBlocks(neutralRange: Boolean) : Comparator<ItemStack>

We want to place average hard blocks such as stone or wood. We don't want to use obsidian or leaves first (high/low hardness).

Link copied to clipboard
object PreferFavourableBlocks : Comparator<ItemStack>
Link copied to clipboard
object PreferFullCubeBlocks : Comparator<ItemStack>
Link copied to clipboard
object PreferSolidBlocks : Comparator<ItemStack>
Link copied to clipboard
Link copied to clipboard
object PreferWalkableBlocks : Comparator<ItemStack>

This predicate sorts blocks by

Link copied to clipboard
enum WeaponType : Tagged, Predicate<ItemStack> , Enum<WeaponType>

Properties

Link copied to clipboard
val DataComponentGetter.armorKnockbackResistance: Double
Link copied to clipboard
val DataComponentGetter.armorToughness: Double
Link copied to clipboard
val DataComponentGetter.armorValue: Double
Link copied to clipboard
val ItemStack.attackDamage: Double
Link copied to clipboard
val ItemStack.attackSpeed: Double
Link copied to clipboard
val DataComponentGetter.blocksAttacksComponent: @Nullable BlocksAttacks?
Link copied to clipboard
Link copied to clipboard
val ItemStack.durability: Int
Link copied to clipboard
val DataComponentGetter.equipmentSlot: EquipmentSlot?
Link copied to clipboard
val DataComponentGetter.equippableComponent: @Nullable Equippable?
Link copied to clipboard
val DataComponentGetter.foodComponent: FoodProperties?
Link copied to clipboard
val ItemStack.isAxe: Boolean
Link copied to clipboard
val ItemStack.isBundle: Boolean
Link copied to clipboard
val ItemStack.isChestArmor: Boolean
Link copied to clipboard
val ItemStack.isConsumable: Boolean
Link copied to clipboard
val ItemStack.isFood: Boolean
Link copied to clipboard
val ItemStack.isFootArmor: Boolean
Link copied to clipboard
val ItemStack.isHeadArmor: Boolean
Link copied to clipboard
val ItemStack.isHoe: Boolean
Link copied to clipboard
val ItemStack.isLegArmor: Boolean
Link copied to clipboard
val ItemStack.isMiningTool: Boolean

Replacement of 1.21.4 MiningToolItem

Link copied to clipboard
val ItemStack.isPickaxe: Boolean
Link copied to clipboard
val ItemStack.isPlayerArmor: Boolean
Link copied to clipboard
val ItemStack.isShovel: Boolean
Link copied to clipboard
val ItemStack.isSpear: Boolean
Link copied to clipboard
val ItemStack.isSword: Boolean
Link copied to clipboard
val DataComponentGetter.toolComponent: Tool?

Functions

Link copied to clipboard
Link copied to clipboard
fun ItemStack.canMerge(other: ItemStack): Boolean
Link copied to clipboard
fun ItemStack.clearEnchantments()
Link copied to clipboard
fun comparingEnchantmentLevel(key: ResourceKey<Enchantment>): Comparator<ItemStack>
Link copied to clipboard
fun createItem(stack: String, amount: Int = 1): ItemStack

Create item with NBT tags

Link copied to clipboard
fun createSplashPotion(name: String, vararg effects: MobEffectInstance): ItemStack
Link copied to clipboard
fun DataComponentGetter.getAttributeValue(attribute: Holder<Attribute>, slot: EquipmentSlot? = null, baseValue: Double = attribute.value().defaultValue): Double
Link copied to clipboard
fun ItemStack.getBlock(): Block?

Get Block of inner item if it is BlockItem, or null if not

Link copied to clipboard
fun ItemCooldowns.getCooldown(stack: ItemStack): ItemCooldownsAddition.Entry?
Link copied to clipboard
fun ItemStack.getDestroySpeedWithEnchantment(state: BlockState): Float
Link copied to clipboard
fun ItemStack?.getEnchantment(enchantment: ResourceKey<Enchantment>): Int
Link copied to clipboard
fun ItemStack?.getEnchantmentCount(): Int
Link copied to clipboard
fun <E : Any> ResourceKey<Registry<E>>.getOrNull(): Registry<E>?
Link copied to clipboard
fun ItemStack.getPotionEffects(): Iterable<MobEffectInstance>
Link copied to clipboard
fun ItemStack.getSharpnessDamage(level: Int = getEnchantment(Enchantments.SHARPNESS)): Double
Link copied to clipboard
fun ItemStack.isFullBlock(): Boolean
Link copied to clipboard
fun ItemStack.isInteractable(): Boolean
Link copied to clipboard
inline fun ItemStack.isMergeable(other: ItemStack): Boolean
Link copied to clipboard
fun ItemStack.removeEnchantment(enchantment: Holder<Enchantment>)
Link copied to clipboard
fun ResourceKey<Enchantment>.toRegistryEntryOrNull(): Holder<Enchantment>?