File tree Expand file tree Collapse file tree
src/main/kotlin/com/mineinabyss/guiy/components/items Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) .
66This project does NOT adhere to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 0.14.2] - 2025-10-11
9+
10+ ### Changed
11+ - Switch away from itemMeta for ItemTheme, use an item model named ` minecraft:empty ` for invisible item instead of paper with CustomModelData 1
12+
813## [ 0.14.1] - 2025-10-11
914
1015### Changed
Original file line number Diff line number Diff line change @@ -2,14 +2,20 @@ package com.mineinabyss.guiy.components.items
22
33import androidx.compose.runtime.Immutable
44import androidx.compose.runtime.staticCompositionLocalOf
5- import com.mineinabyss.idofront.items.editItemMeta
5+ import io.papermc.paper.datacomponent.DataComponentTypes
6+ import io.papermc.paper.datacomponent.item.TooltipDisplay
7+ import net.kyori.adventure.key.Key
68import org.bukkit.Material
79import org.bukkit.inventory.ItemStack
810
911@Immutable
1012class ItemTheme (
11- val invisible : ItemStack = ItemStack .of(Material .PAPER ).editItemMeta { setCustomModelData(1) },
12- val hiddenTooltip : ItemStack = invisible.clone().editItemMeta { isHideTooltip = true },
13+ val invisible : ItemStack = ItemStack .of(Material .PAPER ).apply {
14+ setData(DataComponentTypes .ITEM_MODEL , Key .key("minecraft:empty"))
15+ },
16+ val hiddenTooltip : ItemStack = invisible.clone().apply {
17+ setData(DataComponentTypes .TOOLTIP_DISPLAY , TooltipDisplay .tooltipDisplay().hideTooltip(true))
18+ },
1319)
1420
1521internal val DefaultItemTheme = ItemTheme ()
You can’t perform that action at this time.
0 commit comments