ItemBaseDeclaration

public final class ItemBaseDeclaration

Tells ResourcePackManager which vanilla item a custom item's display model rides on. Geyser matches custom items by base item and model, and ResourcePackManager otherwise guesses the base item from the file name ("wand" becomes a stick), so a BLAZE_ROD wand or a WOODEN_SPEAR staff would stay vanilla on Bedrock. The material comes from the model's sibling YAML.

Functions

Link copied to clipboard
public static void write(File freeMinecraftModelsAssets, String itemId, File modelSource)
Writes rspm_item_bases/display/<itemId>.json when the model's YAML names an item material this server knows.