Package xyz.xenondevs.invui.item
Class ItemWrapper
java.lang.Object
xyz.xenondevs.invui.item.ItemWrapper
- All Implemented Interfaces:
Cloneable
,Supplier<@NotNull org.bukkit.inventory.ItemStack>
,ItemProvider
An
ItemProvider
that just returns the ItemStack
passed to it in the constructor regardless of the players uuid
.-
Field Summary
Fields inherited from interface xyz.xenondevs.invui.item.ItemProvider
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
@NotNull org.bukkit.inventory.ItemStack
Gets theItemStack
translated in the specified language.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xyz.xenondevs.invui.item.ItemProvider
get
-
Constructor Details
-
ItemWrapper
public ItemWrapper(org.bukkit.inventory.ItemStack itemStack)
-
-
Method Details
-
get
Description copied from interface:ItemProvider
Gets theItemStack
translated in the specified language.- Specified by:
get
in interfaceItemProvider
- Parameters:
lang
- The language to translate the item in.- Returns:
- The
ItemStack
-
clone
-