Package org.quiltmc.qkl.wrapper.qsl.items
Functions
Link copied to clipboard
fun buildItemGroup(id: Identifier, block: QuiltItemGroup.Builder.() -> Unit): ItemGroup
Content copied to clipboard
Link copied to clipboard
fun buildItemSettings(block: QuiltItemSettings.() -> Unit): QuiltItemSettings
Content copied to clipboard
Build a QuiltItemSettings with builder-style syntax.
Link copied to clipboard
fun <T> QuiltItemSettings.customSetting(value: T, setting: CustomItemSetting<T>)
Content copied to clipboard
Add a CustomItemSetting to this item settings.
Link copied to clipboard
fun itemGroupOf( id: Identifier, displayText: Text? = null, iconSupplier: () -> ItemStack? = null, itemListModifier: (MutableList<ItemStack>) -> Unit? = null): ItemGroup
Content copied to clipboard
Link copied to clipboard
fun itemSettingsOf( maxCount: Int = 64, maxDamage: Int = 0, recipeRemainder: Item? = null, group: ItemGroup? = null, rarity: Rarity = Rarity.COMMON, foodComponent: FoodComponent? = null, fireproof: Boolean = false, customDamage: CustomDamageHandler? = null, equipmentSlot: (ItemStack) -> EquipmentSlot? = null, otherSettings: List<Pair<CustomItemSetting<*>, *>> = emptyList()): QuiltItemSettings
Content copied to clipboard
Create a QuiltItemSettings with the given information. Calling without specifying any parameters will create the default settings. This is enough for many items.