public class ItemRenderer extends EntityRenderer<ItemEntity>
Modifier and Type | Field and Description |
---|---|
private ItemRenderer |
itemRenderer |
private java.util.Random |
random |
renderManager, shadowOpaque, shadowSize
Constructor and Description |
---|
ItemRenderer(EntityRendererManager renderManagerIn,
ItemRenderer itemRendererIn) |
Modifier and Type | Method and Description |
---|---|
ResourceLocation |
getEntityTexture(ItemEntity entity) |
protected int |
getModelCount(ItemStack stack) |
void |
render(ItemEntity entityIn,
float entityYaw,
float partialTicks,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn) |
boolean |
shouldBob() |
boolean |
shouldSpreadItems() |
canRenderName, getBlockLight, getFontRendererFromRenderManager, getPackedLight, getRenderManager, getRenderOffset, renderName, shouldRender
private final ItemRenderer itemRenderer
private final java.util.Random random
public ItemRenderer(EntityRendererManager renderManagerIn, ItemRenderer itemRendererIn)
protected int getModelCount(ItemStack stack)
public void render(ItemEntity entityIn, float entityYaw, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn)
render
in class EntityRenderer<ItemEntity>
public ResourceLocation getEntityTexture(ItemEntity entity)
getEntityTexture
in class EntityRenderer<ItemEntity>
public boolean shouldSpreadItems()
public boolean shouldBob()