Class ItemRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.entity.EntityRenderer<ItemEntity>
-
- net.minecraft.client.renderer.entity.ItemRenderer
-
public class ItemRenderer extends EntityRenderer<ItemEntity>
-
-
Field Summary
Fields Modifier and Type Field Description private ItemRenderer
itemRenderer
private java.util.Random
random
-
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
-
Constructor Summary
Constructors Constructor Description ItemRenderer(EntityRendererManager p_i46167_1_, ItemRenderer p_i46167_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getRenderAmount(ItemStack p_177078_1_)
ResourceLocation
getTextureLocation(ItemEntity p_110775_1_)
void
render(ItemEntity p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_)
boolean
shouldBob()
boolean
shouldSpreadItems()
-
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getDispatcher, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
-
-
-
Field Detail
-
itemRenderer
private final ItemRenderer itemRenderer
-
random
private final java.util.Random random
-
-
Constructor Detail
-
ItemRenderer
public ItemRenderer(EntityRendererManager p_i46167_1_, ItemRenderer p_i46167_2_)
-
-
Method Detail
-
getRenderAmount
protected int getRenderAmount(ItemStack p_177078_1_)
-
render
public void render(ItemEntity p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_)
- Overrides:
render
in classEntityRenderer<ItemEntity>
-
getTextureLocation
public ResourceLocation getTextureLocation(ItemEntity p_110775_1_)
- Specified by:
getTextureLocation
in classEntityRenderer<ItemEntity>
-
shouldSpreadItems
public boolean shouldSpreadItems()
- Returns:
- If items should spread out when rendered in 3D
-
shouldBob
public boolean shouldBob()
- Returns:
- If items should have a bob effect
-
-