@FunctionalInterface @Environment(value=CLIENT) public static interface BuiltinItemRendererRegistry.DynamicItemRenderer
An item with a dynamic renderer must have a model extending minecraft:builtin/entity
.
The renderers are registered with BuiltinItemRendererRegistry.register(ItemConvertible, DynamicItemRenderer)
.
Modifier and Type | Method and Description |
---|---|
void |
render(net.minecraft.item.ItemStack stack,
net.minecraft.client.render.model.json.ModelTransformation.Mode mode,
net.minecraft.client.util.math.MatrixStack matrices,
net.minecraft.client.render.VertexConsumerProvider vertexConsumers,
int light,
int overlay)
Renders an item stack.
|
void render(net.minecraft.item.ItemStack stack, net.minecraft.client.render.model.json.ModelTransformation.Mode mode, net.minecraft.client.util.math.MatrixStack matrices, net.minecraft.client.render.VertexConsumerProvider vertexConsumers, int light, int overlay)
stack
- the rendered item stackmode
- the model transformation modematrices
- the matrix stackvertexConsumers
- the vertex consumer providerlight
- packed lightmap coordinatesoverlay
- the overlay UV passed to VertexConsumer.overlay(int)