@Environment(value=CLIENT) public abstract class FeatureRenderer<T extends Entity,M extends EntityModel<T>> extends Object
Modifier and Type | Field and Description |
---|---|
private FeatureRendererContext<T,M> |
context |
Constructor and Description |
---|
FeatureRenderer(FeatureRendererContext<T,M> context) |
Modifier and Type | Method and Description |
---|---|
M |
getContextModel() |
protected Identifier |
getTexture(T entity) |
protected static <T extends LivingEntity> |
render(EntityModel<T> contextModel,
EntityModel<T> model,
Identifier texture,
MatrixStack matrices,
VertexConsumerProvider vertexConsumers,
int light,
T entity,
float limbAngle,
float limbDistance,
float age,
float headYaw,
float headPitch,
float tickDelta,
float red,
float green,
float blue) |
abstract void |
render(MatrixStack matrices,
VertexConsumerProvider vertexConsumers,
int light,
T entity,
float limbAngle,
float limbDistance,
float tickDelta,
float animationProgress,
float headYaw,
float headPitch) |
protected static <T extends LivingEntity> |
renderModel(EntityModel<T> model,
Identifier texture,
MatrixStack matrices,
VertexConsumerProvider vertexConsumers,
int light,
T entity,
float red,
float green,
float blue) |
private final FeatureRendererContext<T extends Entity,M extends EntityModel<T>> context
public FeatureRenderer(FeatureRendererContext<T,M> context)
protected static <T extends LivingEntity> void render(EntityModel<T> contextModel, EntityModel<T> model, Identifier texture, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float limbAngle, float limbDistance, float age, float headYaw, float headPitch, float tickDelta, float red, float green, float blue)
protected static <T extends LivingEntity> void renderModel(EntityModel<T> model, Identifier texture, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float red, float green, float blue)
public M getContextModel()
protected Identifier getTexture(T entity)
public abstract void render(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch)