ModelService

public final class ModelService

Service for applying BetterModel item models to ItemStacks.

Constructors

Link copied to clipboard
public void ModelService()
Constructs a new ModelService.

Functions

Link copied to clipboard
public void applyItemModel(@NotNull() @NotNull() ItemStack item, @NotNull() @NotNull() String modelId)
Applies a custom item model to an ItemStack.
Link copied to clipboard
public void clearItemModel(@NotNull() @NotNull() ItemStack item)
Removes a custom item model from a stack.
Link copied to clipboard
@NotNull()
public @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 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 void refreshMaterial(@NotNull() @NotNull() Player player, @NotNull() @NotNull() Material material, @Nullable() @Nullable() Skin skin)
Updates every inventory stack of material for the player.