public class RenderEntityItem extends Render<EntityItem>
Modifier and Type | Field and Description |
---|---|
private RenderItem |
itemRenderer |
private java.util.Random |
random |
renderManager, renderOutlines, shadowOpaque, shadowSize
Constructor and Description |
---|
RenderEntityItem(RenderManager renderManagerIn,
RenderItem p_i46167_2_) |
Modifier and Type | Method and Description |
---|---|
void |
doRender(EntityItem entity,
double x,
double y,
double z,
float entityYaw,
float partialTicks) |
protected ResourceLocation |
getEntityTexture(EntityItem entity) |
protected int |
getModelCount(ItemStack stack) |
boolean |
shouldBob()
Items should have a bob effect
|
boolean |
shouldSpreadItems()
Items should spread out when rendered in 3d?
|
private int |
transformModelCount(EntityItem itemIn,
double p_177077_2_,
double p_177077_4_,
double p_177077_6_,
float p_177077_8_,
IBakedModel p_177077_9_) |
bindEntityTexture, bindTexture, canRenderName, doRenderShadowAndFire, getFontRendererFromRenderManager, getRenderManager, getTeamColor, isMultipass, renderEntityName, renderLivingLabel, renderMultipass, renderName, renderOffsetAABB, setRenderOutlines, shouldRender
private final RenderItem itemRenderer
private final java.util.Random random
public RenderEntityItem(RenderManager renderManagerIn, RenderItem p_i46167_2_)
private int transformModelCount(EntityItem itemIn, double p_177077_2_, double p_177077_4_, double p_177077_6_, float p_177077_8_, IBakedModel p_177077_9_)
protected int getModelCount(ItemStack stack)
public void doRender(EntityItem entity, double x, double y, double z, float entityYaw, float partialTicks)
doRender
in class Render<EntityItem>
protected ResourceLocation getEntityTexture(EntityItem entity)
getEntityTexture
in class Render<EntityItem>
public boolean shouldSpreadItems()
public boolean shouldBob()