@Environment(value=CLIENT)
public interface BuiltinItemRendererRegistry
Modifier and Type | Interface and Description |
---|---|
static interface |
BuiltinItemRendererRegistry.DynamicItemRenderer
Dynamic item renderers render items with custom code.
|
Modifier and Type | Field and Description |
---|---|
static BuiltinItemRendererRegistry |
INSTANCE
The singleton instance of the renderer registry.
|
Modifier and Type | Method and Description |
---|---|
void |
register(net.minecraft.item.Item item,
BuiltinItemRenderer renderer)
Deprecated.
Please use
register(ItemConvertible, DynamicItemRenderer) instead. |
void |
register(net.minecraft.item.ItemConvertible item,
BuiltinItemRenderer renderer)
Deprecated.
Please use
register(ItemConvertible, DynamicItemRenderer) instead. |
void |
register(@NotNull net.minecraft.item.ItemConvertible item,
@NotNull BuiltinItemRendererRegistry.DynamicItemRenderer renderer)
Registers the renderer for the item.
|
static final BuiltinItemRendererRegistry INSTANCE
@Deprecated void register(net.minecraft.item.Item item, BuiltinItemRenderer renderer)
register(ItemConvertible, DynamicItemRenderer)
instead.Note that the item's JSON model must also extend minecraft:builtin/entity
.
item
- the itemrenderer
- the rendererIllegalArgumentException
- if the item already has a registered rendererNullPointerException
- if either the item or the renderer is null@Deprecated void register(net.minecraft.item.ItemConvertible item, BuiltinItemRenderer renderer)
register(ItemConvertible, DynamicItemRenderer)
instead.Note that the item's JSON model must also extend minecraft:builtin/entity
.
item
- the itemrenderer
- the rendererIllegalArgumentException
- if the item already has a registered rendererNullPointerException
- if either the item or the renderer is nullvoid register(@NotNull @NotNull net.minecraft.item.ItemConvertible item, @NotNull @NotNull BuiltinItemRendererRegistry.DynamicItemRenderer renderer)
Note that the item's JSON model must also extend minecraft:builtin/entity
.
item
- the itemrenderer
- the rendererIllegalArgumentException
- if the item already has a registered rendererNullPointerException
- if either the item or the renderer is null