Model

@ApiStatus.Internal()
public interface Model implements Nexo

Functions

Link copied to clipboard
public abstract void clearItemModel(@NotNull() @NotNull() ItemStack item, @NotNull() @NotNull() Inventory inventory)
Removes a custom item model from a stack.
Link copied to clipboard
@NotNull()
public abstract @NotNull() ItemStack createPreviewItem(@NotNull() @NotNull() Skin skin)
Builds a GUI preview item using the skin model when available, otherwise the display material.
Link copied to clipboard
public abstract ItemStack getItemModel(@NotNull() @NotNull() ItemStack item, @NotNull() @NotNull() String modelId)
Returns an item, with a model applied to it.
Link copied to clipboard
public abstract String getNexoId(@NotNull() @NotNull() String modelId)
Gets the nexo item id from the ChamoItemSkins format (If it starts with nexo: it will parse that)
Link copied to clipboard
public abstract ItemStack getNexoItem(@NotNull() @NotNull() ItemStack itemStack, @NotNull() @NotNull() String nexoId)
It makes a Nexo Item ItemStack with a current ItemStack
Link copied to clipboard
public abstract boolean isNexo(@NotNull() @NotNull() String modelId)
Is the modelId nexo?
Link copied to clipboard
public abstract boolean isNexoEnabled()
Is Nexo Enabled?
Link copied to clipboard
public abstract void refreshInventory(@NotNull() @NotNull() Player player, @NotNull() @NotNull() Map<Material, Skin> activeSkins)
Re-applies active skin models across the player's entire inventory.
Link copied to clipboard
public abstract void refreshMaterial(@NotNull() @NotNull() Player player, @NotNull() @NotNull() Material material, @Nullable() @Nullable() Skin skin)
Updates every inventory stack of material for the player.
Link copied to clipboard
public abstract void swapItemStack(@NotNull() @NotNull() ItemStack oldItem, @NotNull() @NotNull() ItemStack newItem, @NotNull() @NotNull() Inventory inventory)
Replaces an item in an inventory