Class SpriteRenderer<T extends Entity & IRendersAsItem>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.SpriteRenderer<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final ItemRenderer
private final float
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorDescriptionSpriteRenderer
(EntityRendererManager p_i50957_1_, ItemRenderer p_i50957_2_) SpriteRenderer
(EntityRendererManager p_i226035_1_, ItemRenderer p_i226035_2_, float p_i226035_3_, boolean p_i226035_4_) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
getBlockLightLevel
(T p_225624_1_, BlockPos p_225624_2_) getTextureLocation
(Entity p_110775_1_) void
render
(T p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getDispatcher, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
Field Details
-
itemRenderer
-
scale
private final float scale -
fullBright
private final boolean fullBright
-
-
Constructor Details
-
SpriteRenderer
public SpriteRenderer(EntityRendererManager p_i226035_1_, ItemRenderer p_i226035_2_, float p_i226035_3_, boolean p_i226035_4_) -
SpriteRenderer
-
-
Method Details
-
getBlockLightLevel
- Overrides:
getBlockLightLevel
in classEntityRenderer<T extends Entity & IRendersAsItem>
-
render
public void render(T p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_) - Overrides:
render
in classEntityRenderer<T extends Entity & IRendersAsItem>
-
getTextureLocation
- Specified by:
getTextureLocation
in classEntityRenderer<T extends Entity & IRendersAsItem>
-