File tree Expand file tree Collapse file tree
invui/src/main/java/xyz/xenondevs/invui/gui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 */
1414public sealed interface SlotElement {
1515
16+ /**
17+ * Gets the {@link ItemStack} that should be displayed in the slot.
18+ *
19+ * @param player The player viewing the {@link ItemStack}
20+ * @return The {@link ItemStack} that should be displayed in the slot
21+ */
1622 @ Nullable
1723 ItemStack getItemStack (Player player );
1824
25+ /**
26+ * Gets the {@link SlotElement} that is actually holding the {@link ItemStack}.
27+ *
28+ * @return The {@link SlotElement} that is actually holding the {@link ItemStack}
29+ */
1930 @ Nullable
2031 SlotElement getHoldingElement ();
2132
2233 /**
2334 * Contains an {@link xyz.xenondevs.invui.item.Item}
35+ *
36+ * @param item The {@link xyz.xenondevs.invui.item.Item}
2437 */
2538 record Item (xyz .xenondevs .invui .item .Item item ) implements SlotElement {
2639
You can’t perform that action at this time.
0 commit comments