Class ItemEntityRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<ItemEntity>
net.minecraft.client.renderer.entity.ItemEntityRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static floatprivate static floatprivate static floatprivate static floatprivate static intprivate static intprivate static intprivate static intprivate ItemRendererprivate RandomFields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetRenderAmount(ItemStack p_115043_)getTextureLocation(ItemEntity p_115034_)voidrender(ItemEntity p_115036_, float p_115037_, float p_115038_, PoseStack p_115039_, MultiBufferSource p_115040_, int p_115041_)booleanbooleanMethods 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:
renderin classEntityRenderer<ItemEntity>
-
getTextureLocation
- Specified by:
getTextureLocationin 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
-