@Environment(value=CLIENT) public class ItemEntityRenderer extends EntityRenderer<ItemEntity>
Modifier and Type | Field and Description |
---|---|
private ItemRenderer |
itemRenderer |
private Random |
random |
dispatcher, shadowOpacity, shadowRadius
Constructor and Description |
---|
ItemEntityRenderer(EntityRenderDispatcher dispatcher,
ItemRenderer itemRenderer) |
Modifier and Type | Method and Description |
---|---|
private int |
getRenderedAmount(ItemStack stack) |
Identifier |
getTexture(ItemEntity itemEntity) |
void |
render(ItemEntity itemEntity,
float float2,
float float3,
MatrixStack matrixStack,
VertexConsumerProvider vertexConsumerProvider,
int int2) |
getBlockLight, getFontRenderer, getLight, getPositionOffset, getRenderManager, hasLabel, method_27950, renderLabelIfPresent, shouldRender
private final ItemRenderer itemRenderer
private final Random random
public ItemEntityRenderer(EntityRenderDispatcher dispatcher, ItemRenderer itemRenderer)
private int getRenderedAmount(ItemStack stack)
public void render(ItemEntity itemEntity, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
render
in class EntityRenderer<ItemEntity>
public Identifier getTexture(ItemEntity itemEntity)
getTexture
in class EntityRenderer<ItemEntity>