Package-level declarations
Types
Link copied to clipboard
interface Chargeable
Allows items to store energy and be charged.
Link copied to clipboard
class Consumable(nutrition: Provider<Int>, saturation: Provider<Float>, canAlwaysEat: Provider<Boolean>, consumeTime: Provider<Int>, remains: Provider<ItemStack?>, possibleEffects: Provider<Map<PotionEffect, Float>>) : ItemBehavior
Allows items to be consumed.
Link copied to clipboard
class Damageable(maxDurability: Provider<Int>, itemDamageOnAttackEntity: Provider<Int>, itemDamageOnBreakBlock: Provider<Int>, repairIngredient: Provider<RecipeChoice?>) : ItemBehavior
Allows items to store and receive damage.
Link copied to clipboard
class Enchantable(enchantmentValue: Provider<Int>, primaryEnchantments: Provider<Set<Enchantment>>, supportedEnchantments: Provider<Set<Enchantment>>) : ItemBehavior
Makes an item enchantable.
Link copied to clipboard
Allows items to extinguish campfires.
Link copied to clipboard
Makes items fire-resistant.
Link copied to clipboard
Allows items to flatten the ground.
Link copied to clipboard
Allows items to be used as fuel in furnaces.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Interface for item behaviors that contain an ItemFilter of type T.
Link copied to clipboard
Allows items to strip blocks.
Link copied to clipboard
Allows items to till the ground.
Link copied to clipboard
class Tool(tier: Provider<ToolTier>, categories: Provider<Set<ToolCategory>>, breakSpeed: Provider<Double>, attackDamage: Provider<Double?>, attackSpeed: Provider<Double?>, knockbackBonus: Provider<Int>, canSweepAttack: Provider<Boolean>, canBreakBlocksInCreative: Provider<Boolean>) : ItemBehavior
Allows items to be used as tools, by specifying break and attack properties.
Functions
Link copied to clipboard
Link copied to clipboard
fun Wearable(armor: Armor?, slot: EquipmentSlot, equipSound: String? = null): ItemBehaviorFactory<Wearable>
fun Wearable(armor: Armor?, slot: EquipmentSlot, equipSound: SoundEvent): ItemBehaviorFactory<Wearable>
Allows items to be worn in armor slots.