Package com.mclds.plugins.gui.items
Class ItemWrapper
java.lang.Object
com.mclds.plugins.gui.items.ItemWrapper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemWrapperair()amount(int amount) appendDoubleClickDescription(String doubleClickDescription) appendLeftClickDescription(String leftClickDescription) appendLore(String desc) appendLore(String desc, net.kyori.adventure.text.format.NamedTextColor color) appendMiddleClickDescription(String middleClickDescription) appendRightClickDescription(String rightClickDescription) appendSeparatorLine(int length) appendShiftLeftClickDescription(String shiftLeftClickDescription) appendShiftRightClickDescription(String shiftRightClickDescription) appendSwapOffhandDescription(String swapOffhandDescription) bedrockButtonDesc(boolean useItemLoreAsBedrockButtonDesc) bedrockButtonDesc(String bedrockButtonDesc) bedrockButtonDesc(Function<ItemWrapper, String> supplier) bedrockButtonText(boolean useItemNameAsBedrockButtonText) bedrockButtonText(String bedrockButtonText) bedrockButtonText(Function<ItemWrapper, String> supplier) displayName(String name) displayName(net.kyori.adventure.text.Component name) lore(net.kyori.adventure.text.TextComponent... lore) static ItemWrapperof(@NotNull org.bukkit.inventory.ItemStack itemStack) static ItemWrapperof(org.bukkit.Material material) onDoubleClick(ItemWrapperClickCallback callback) onLeftClick(ItemWrapperClickCallback callback) onMiddleClick(ItemWrapperClickCallback callback) onRightClick(ItemWrapperClickCallback callback) onShiftLeftClick(ItemWrapperClickCallback callback) 使用 onShiftLeftClick 需要在 GUI.onMoveToPlayer 和 onMoveToGUI 返回 trueonShiftRightClick(ItemWrapperClickCallback callback) 使用 onShiftRightClick 需要在 GUI.onMoveToPlayer 和 onMoveToGUI 返回 trueonSwapOffhand(ItemWrapperClickCallback callback) setBedrockButtons(Map<String, ItemWrapperClickCallback> bedrockButtons)
-
Field Details
-
leftClickDescription
-
rightClickDescription
-
shiftLeftClickDescription
-
shiftRightClickDescription
-
middleClickDescription
-
doubleClickDescription
-
swapOffhandDescription
-
bedrockButtonText
-
bedrockButtonDesc
-
bedrockButtons
如果有基岩版按钮,则优先使用
-
-
Constructor Details
-
ItemWrapper
public ItemWrapper(org.bukkit.inventory.ItemStack itemStack)
-
-
Method Details
-
of
-
of
-
air
-
bedrockButtonText
-
bedrockButtonText
-
bedrockButtonText
-
bedrockButtonDesc
-
bedrockButtonDesc
-
bedrockButtonDesc
-
appendNewLine
-
appendSeparatorLine
-
appendSeparatorLine
-
appendLore
-
appendLore
-
appendLeftClickDescription
-
appendRightClickDescription
-
appendShiftLeftClickDescription
-
appendShiftRightClickDescription
-
appendMiddleClickDescription
-
appendDoubleClickDescription
-
appendSwapOffhandDescription
-
displayName
-
amount
-
displayName
-
lore
-
lore
-
lore
-
onLeftClick
-
onRightClick
-
onShiftLeftClick
使用 onShiftLeftClick 需要在 GUI.onMoveToPlayer 和 onMoveToGUI 返回 true -
onShiftRightClick
使用 onShiftRightClick 需要在 GUI.onMoveToPlayer 和 onMoveToGUI 返回 true -
onMiddleClick
-
onDoubleClick
-
onSwapOffhand
-
setBedrockButtons
-