ModelService
Service for applying BetterModel item models to ItemStacks.
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
Removes a custom item model from a stack.
Link copied to clipboard
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.