Class IconWrapper
java.lang.Object
com.ultikits.ultitools.abstracts.gui.declarative.widgets.IconWrapper
IconWrapper is a simple wrapper around Icon, used to pass it through the Widget tree.
It is immutable and can be safely shared across multiple Widgets.
- Since:
- 6.2.0
- Version:
- 1.0.0
- Author:
- UltiTools Team
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIconWrapper(@NotNull mc.obliviate.inventory.Icon icon) IconWrapper(@NotNull org.bukkit.inventory.ItemStack itemStack) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull IconWrapper.Builderbuilder(@NotNull org.bukkit.inventory.ItemStack itemStack) Creates a builder for IconWrapper.@NotNull mc.obliviate.inventory.IcongetIcon()
-
Field Details
-
icon
@NotNull private final @NotNull mc.obliviate.inventory.Icon icon
-
-
Constructor Details
-
IconWrapper
public IconWrapper(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) -
IconWrapper
public IconWrapper(@NotNull @NotNull mc.obliviate.inventory.Icon icon)
-
-
Method Details
-
getIcon
@NotNull public @NotNull mc.obliviate.inventory.Icon getIcon() -
builder
@NotNull public static @NotNull IconWrapper.Builder builder(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Creates a builder for IconWrapper.- Parameters:
itemStack- the item stack- Returns:
- the Builder
-