Class ItemEntityRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<ItemEntity>
net.minecraft.client.renderer.entity.ItemEntityRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
private static final float
private static final float
private static final float
private static final int
private static final int
private static final int
private static final int
private final ItemRenderer
private final 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:
-
ITEM_COUNT_FOR_5_BUNDLE
private static final int ITEM_COUNT_FOR_5_BUNDLE- See Also:
-
ITEM_COUNT_FOR_4_BUNDLE
private static final int ITEM_COUNT_FOR_4_BUNDLE- See Also:
-
ITEM_COUNT_FOR_3_BUNDLE
private static final int ITEM_COUNT_FOR_3_BUNDLE- See Also:
-
ITEM_COUNT_FOR_2_BUNDLE
private static final int ITEM_COUNT_FOR_2_BUNDLE- See Also:
-
FLAT_ITEM_BUNDLE_OFFSET_X
private static final float FLAT_ITEM_BUNDLE_OFFSET_X- See Also:
-
FLAT_ITEM_BUNDLE_OFFSET_Y
private static final float FLAT_ITEM_BUNDLE_OFFSET_Y- See Also:
-
FLAT_ITEM_BUNDLE_OFFSET_Z
private static final float FLAT_ITEM_BUNDLE_OFFSET_Z- See Also:
-
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
-