Class ItemEntityRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<ItemEntity>
net.minecraft.client.renderer.entity.ItemEntityRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static float
private static float
private static float
private static float
private static int
private static int
private static int
private static int
private ItemRenderer
private Random
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
getRenderAmount(ItemStack p_115043_)
getTextureLocation(ItemEntity p_115034_)
void
render(ItemEntity p_115036_, float p_115037_, float p_115038_, PoseStack p_115039_, MultiBufferSource p_115040_, int p_115041_)
boolean
boolean
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
Field Details
-
ITEM_BUNDLE_OFFSET_SCALE
private static final float ITEM_BUNDLE_OFFSET_SCALE- See Also:
- Constant Field Values
-
ITEM_COUNT_FOR_5_BUNDLE
private static final int ITEM_COUNT_FOR_5_BUNDLE- See Also:
- Constant Field Values
-
ITEM_COUNT_FOR_4_BUNDLE
private static final int ITEM_COUNT_FOR_4_BUNDLE- See Also:
- Constant Field Values
-
ITEM_COUNT_FOR_3_BUNDLE
private static final int ITEM_COUNT_FOR_3_BUNDLE- See Also:
- Constant Field Values
-
ITEM_COUNT_FOR_2_BUNDLE
private static final int ITEM_COUNT_FOR_2_BUNDLE- See Also:
- Constant Field Values
-
FLAT_ITEM_BUNDLE_OFFSET_X
private static final float FLAT_ITEM_BUNDLE_OFFSET_X- See Also:
- Constant Field Values
-
FLAT_ITEM_BUNDLE_OFFSET_Y
private static final float FLAT_ITEM_BUNDLE_OFFSET_Y- See Also:
- Constant Field Values
-
FLAT_ITEM_BUNDLE_OFFSET_Z
private static final float FLAT_ITEM_BUNDLE_OFFSET_Z- See Also:
- Constant Field Values
-
itemRenderer
-
random
-
-
Constructor Details
-
ItemEntityRenderer
-
-
Method Details
-
getRenderAmount
-
render
public void render(ItemEntity p_115036_, float p_115037_, float p_115038_, PoseStack p_115039_, MultiBufferSource p_115040_, int p_115041_)- Overrides:
render
in classEntityRenderer<ItemEntity>
-
getTextureLocation
- 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
-