BuiltinItemRendererRegistry.DynamicItemRenderer instead.@Deprecated @Environment(value=CLIENT) @FunctionalInterface public interface BuiltinItemRenderer
An item with a builtin renderer must have a model extending minecraft:builtin/entity.
The renderers are registered with BuiltinItemRendererRegistry.register(Item, BuiltinItemRenderer).
| Modifier and Type | Method and Description |
|---|---|
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.
|
void render(net.minecraft.item.ItemStack stack,
net.minecraft.client.util.math.MatrixStack matrices,
net.minecraft.client.render.VertexConsumerProvider vertexConsumers,
int light,
int overlay)
stack - the rendered item stackmatrices - the matrix stackvertexConsumers - the vertex consumer providerlight - the color light multiplier at the rendering positionoverlay - the overlay UV passed to VertexConsumer.overlay(int)