register
@Deprecated()
Content copied to clipboard
@Deprecated()
Content copied to clipboard
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
abstract void register(@NotNull() ItemConvertible item, @NotNull() 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