register
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)
Content copied to clipboard
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