Class ItemEditor<M extends ItemMeta>
java.lang.Object
net.okocraft.box.feature.gui.api.util.ItemEditor<M>
-
Method Summary
Modifier and TypeMethodDescription@NotNull ItemStack@NotNull ItemEditor<M> @NotNull ItemEditor<M> copyLoreFrom(@NotNull ItemStack source) static @NotNull ItemEditor<ItemMeta> create()static <M extends ItemMeta>
@NotNull ItemEditor<M> @NotNull ItemStackcreateItem(@NotNull Material material) @NotNull ItemStackcreateItem(@NotNull Material material, int amount) @NotNull ItemEditor<M> displayName(@NotNull Component displayName) @NotNull ItemEditor<M> @NotNull ItemEditor<M> @NotNull ItemEditor<M> loreEmptyLineIf(boolean state) @NotNull ItemEditor<M> @NotNull ItemEditor<M> loreLineIf(boolean state, @NotNull Supplier<Component> line) @NotNull ItemEditor<M>
-
Method Details
-
create
-
create
@Contract("_ -> new") @NotNull public static <M extends ItemMeta> @NotNull ItemEditor<M> create(@NotNull @NotNull Class<M> clazz) -
displayName
-
clearLore
-
loreEmptyLine
-
loreEmptyLineIf
-
loreLine
-
loreLineIf
@NotNull public @NotNull ItemEditor<M> loreLineIf(boolean state, @NotNull @NotNull Supplier<Component> line) -
loreLines
-
copyLoreFrom
-
editMeta
-
applyTo
-
createItem
-
createItem
-