Wrapper

public interface Wrapper

Functions

Link copied to clipboard
public abstract WrapModifiers getModifiers()
Get all possible wrap modifiers.
Link copied to clipboard
@Nullable()
public abstract @Nullable() UUID getOwningPlayer(ItemStack item)
Get the player UUID the wrap belongs to.
Link copied to clipboard
@Nullable()
public abstract @Nullable() String getPhysicalWrapper(ItemStack item)
Get the ID from a wrapper.
Link copied to clipboard
@Nullable()
public abstract @Nullable() Wrap getWrap(ItemStack item)
Get the wrap on an item.
Link copied to clipboard
public abstract boolean isGloballyDisabled(ItemStack item)
Check if the item is globally disabled to not be able to be wrapped.
Link copied to clipboard
public abstract boolean isOwningPlayer(ItemStack item, Player player)
If the provided player is owning the wrap on the item.
Link copied to clipboard
public abstract boolean isPhysical(ItemStack item)
Check if the wrap was applied physically.
Link copied to clipboard
public abstract boolean isPhysicalUnwrapper(ItemStack item)
Check if the item is an unwrapper.
Link copied to clipboard
public abstract boolean isValid(ItemStack item, Wrap wrap)
Check if the items model id is valid for the wrap.
Link copied to clipboard
public abstract ItemStack removeWrap(ItemStack itemStack, Player player)
Remove a wrap.
Link copied to clipboard
public abstract ItemStack setOwningPlayer(ItemStack item, UUID uuid)
Set the owning player.
Link copied to clipboard
public abstract ItemStack setPhysical(ItemStack item, boolean physical)
Set if the wrap was applied physically.
Link copied to clipboard
public abstract ItemStack setPhysicalUnwrapper(ItemStack item)
Set the item to be a physical unwrapper.
Link copied to clipboard
public abstract ItemStack setPhysicalWrapper(ItemStack item, Wrap wrap)
Set the item to be a physical wrapper.
Link copied to clipboard
public abstract ItemStack setWrap(Wrap wrap, ItemStack target, boolean physical, Player player)
Wrap an item.