Class ThrownItemRenderer<T extends Entity & ItemSupplier>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.ThrownItemRenderer<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final ItemRenderer
private static final float
private final float
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorDescriptionThrownItemRenderer
(EntityRendererProvider.Context p_174414_) ThrownItemRenderer
(EntityRendererProvider.Context p_174416_, float p_174417_, boolean p_174418_) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
getBlockLightLevel
(T p_116092_, BlockPos p_116093_) getTextureLocation
(Entity p_116083_) void
render
(T p_116085_, float p_116086_, float p_116087_, PoseStack p_116088_, MultiBufferSource p_116089_, int p_116090_) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
Field Details
-
MIN_CAMERA_DISTANCE_SQUARED
private static final float MIN_CAMERA_DISTANCE_SQUARED- See Also:
-
itemRenderer
-
scale
private final float scale -
fullBright
private final boolean fullBright
-
-
Constructor Details
-
ThrownItemRenderer
public ThrownItemRenderer(EntityRendererProvider.Context p_174416_, float p_174417_, boolean p_174418_) -
ThrownItemRenderer
-
-
Method Details
-
getBlockLightLevel
- Overrides:
getBlockLightLevel
in classEntityRenderer<T extends Entity & ItemSupplier>
-
render
public void render(T p_116085_, float p_116086_, float p_116087_, PoseStack p_116088_, MultiBufferSource p_116089_, int p_116090_) - Overrides:
render
in classEntityRenderer<T extends Entity & ItemSupplier>
-
getTextureLocation
- Specified by:
getTextureLocation
in classEntityRenderer<T extends Entity & ItemSupplier>
-