register

void register(Item item, BuiltinItemRenderer renderer)
void register(ItemConvertible item, BuiltinItemRenderer renderer)

Registers the renderer for the item.

Note that the item's JSON model must also extend {@code minecraft:builtin/entity}.

Deprecated

Please use register instead.

Parameters

item

the item

renderer

the renderer

Throws

if the item already has a registered renderer

if either the item or the renderer is null

void register(ItemConvertible item, BuiltinItemRendererRegistry.DynamicItemRenderer renderer)

Registers the renderer for the item.

Note that the item's JSON model must also extend {@code minecraft:builtin/entity}.

Parameters

item

the item

renderer

the renderer

Throws

if the item already has a registered renderer

if either the item or the renderer is null