Class SpriteRenderer<T extends Entity & IRendersAsItem>
- java.lang.Object
-
- net.minecraft.client.renderer.entity.EntityRenderer<T>
-
- net.minecraft.client.renderer.entity.SpriteRenderer<T>
-
public class SpriteRenderer<T extends Entity & IRendersAsItem> extends EntityRenderer<T>
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
fullBright
private ItemRenderer
itemRenderer
private float
scale
-
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
-
Constructor Summary
Constructors Constructor Description SpriteRenderer(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getBlockLightLevel(T p_225624_1_, BlockPos p_225624_2_)
ResourceLocation
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 Detail
-
itemRenderer
private final ItemRenderer itemRenderer
-
scale
private final float scale
-
fullBright
private final boolean fullBright
-
-
Constructor Detail
-
SpriteRenderer
public SpriteRenderer(EntityRendererManager p_i226035_1_, ItemRenderer p_i226035_2_, float p_i226035_3_, boolean p_i226035_4_)
-
SpriteRenderer
public SpriteRenderer(EntityRendererManager p_i50957_1_, ItemRenderer p_i50957_2_)
-
-
Method Detail
-
getBlockLightLevel
protected int getBlockLightLevel(T p_225624_1_, BlockPos p_225624_2_)
- 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
public ResourceLocation getTextureLocation(Entity p_110775_1_)
- Specified by:
getTextureLocation
in classEntityRenderer<T extends Entity & IRendersAsItem>
-
-