@Environment(value=CLIENT) public class FlyingItemEntityRenderer<T extends Entity & FlyingItemEntity> extends EntityRenderer<T>
Modifier and Type | Field and Description |
---|---|
private ItemRenderer |
itemRenderer |
private boolean |
lit |
private float |
scale |
dispatcher, shadowOpacity, shadowRadius
Constructor and Description |
---|
FlyingItemEntityRenderer(EntityRenderDispatcher dispatcher,
ItemRenderer itemRenderer) |
FlyingItemEntityRenderer(EntityRenderDispatcher dispatcher,
ItemRenderer itemRenderer,
float scale,
boolean lit) |
Modifier and Type | Method and Description |
---|---|
protected int |
getBlockLight(T t,
BlockPos blockPos) |
Identifier |
getTexture(Entity entity) |
void |
render(T entity,
float yaw,
float tickDelta,
MatrixStack matrices,
VertexConsumerProvider vertexConsumers,
int light) |
getFontRenderer, getLight, getPositionOffset, getRenderManager, hasLabel, method_27950, renderLabelIfPresent, shouldRender
private final ItemRenderer itemRenderer
private final float scale
private final boolean lit
public FlyingItemEntityRenderer(EntityRenderDispatcher dispatcher, ItemRenderer itemRenderer, float scale, boolean lit)
public FlyingItemEntityRenderer(EntityRenderDispatcher dispatcher, ItemRenderer itemRenderer)
protected int getBlockLight(T t, BlockPos blockPos)
getBlockLight
in class EntityRenderer<T extends Entity & FlyingItemEntity>
public void render(T entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
render
in class EntityRenderer<T extends Entity & FlyingItemEntity>
public Identifier getTexture(Entity entity)
getTexture
in class EntityRenderer<T extends Entity & FlyingItemEntity>