Class ItemEditor
java.lang.Object
net.okocraft.box.feature.gui.api.util.ItemEditor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ItemStack@NotNull ItemEditor@NotNull ItemEditorcopyLoreFrom(@NotNull ItemStack source) static @NotNull ItemEditorcreate()@NotNull ItemStackcreateItem(@NotNull Player player, @NotNull Material material) @NotNull ItemStackcreateItem(@NotNull Player player, @NotNull Material material, int amount) @NotNull ItemEditordisplayName(@NotNull ComponentLike displayName) @NotNull ItemEditoreditPersistentDataContainer(@NotNull Consumer<PersistentDataContainer> edit) @NotNull ItemEditor@NotNull ItemEditorloreEmptyLineIf(boolean state) @NotNull ItemEditorloreLine(@NotNull ComponentLike line) @NotNull ItemEditorloreLineIf(boolean state, @NotNull Supplier<? extends ComponentLike> line) @NotNull ItemEditorloreLines(@NotNull ComponentLike lines)
-
Constructor Details
-
ItemEditor
public ItemEditor()
-
-
Method Details
-
create
-
displayName
-
clearLore
-
loreEmptyLine
-
loreEmptyLineIf
-
loreLine
-
loreLineIf
@NotNull public @NotNull ItemEditor loreLineIf(boolean state, @NotNull @NotNull Supplier<? extends ComponentLike> line) -
loreLines
-
copyLoreFrom
-
editPersistentDataContainer
@NotNull public @NotNull ItemEditor editPersistentDataContainer(@NotNull @NotNull Consumer<PersistentDataContainer> edit) -
applyTo
-
createItem
-
createItem
-