Interface BuiltinItemRenderer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Deprecated.
Builtin item renderers render items with custom code.
They allow using non-model rendering, such as BERs, for items.
An item with a builtin renderer must have a model extending minecraft:builtin/entity
.
The renderers are registered with BuiltinItemRendererRegistry.register(Item, BuiltinItemRenderer)
.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(net.minecraft.item.ItemStack stack, net.minecraft.client.util.math.MatrixStack matrices, net.minecraft.client.render.VertexConsumerProvider vertexConsumers, int light, int overlay) Deprecated.Renders an item stack.
-
Method Details
-
render
void render(net.minecraft.item.ItemStack stack, net.minecraft.client.util.math.MatrixStack matrices, net.minecraft.client.render.VertexConsumerProvider vertexConsumers, int light, int overlay) Deprecated.Renders an item stack.- Parameters:
stack
- the rendered item stackmatrices
- the matrix stackvertexConsumers
- the vertex consumer providerlight
- the color light multiplier at the rendering positionoverlay
- the overlay UV passed toVertexConsumer.overlay(int)
-
BuiltinItemRendererRegistry.DynamicItemRenderer
instead.