@Environment(value=CLIENT) public class PufferfishEntityRenderer extends MobEntityRenderer<PufferfishEntity,EntityModel<PufferfishEntity>>
Modifier and Type | Field and Description |
---|---|
private LargePufferfishEntityModel<PufferfishEntity> |
largeModel |
private MediumPufferfishEntityModel<PufferfishEntity> |
mediumModel |
private int |
modelSize |
private SmallPufferfishEntityModel<PufferfishEntity> |
smallModel |
private static Identifier |
TEXTURE |
features, model
dispatcher, shadowOpacity, shadowRadius
Constructor and Description |
---|
PufferfishEntityRenderer(EntityRenderDispatcher dispatcher) |
Modifier and Type | Method and Description |
---|---|
Identifier |
getTexture(PufferfishEntity pufferfishEntity) |
void |
render(PufferfishEntity pufferfishEntity,
float float2,
float float3,
MatrixStack matrixStack,
VertexConsumerProvider vertexConsumerProvider,
int int2) |
protected void |
setupTransforms(PufferfishEntity pufferfishEntity,
MatrixStack matrixStack,
float float2,
float float3,
float float4) |
hasLabel, method_23186, method_23187, shouldRender
addFeature, getAnimationCounter, getAnimationProgress, getHandSwingProgress, getLyingAngle, getModel, getOverlay, getRenderLayer, isShaking, isVisible, scale
getBlockLight, getFontRenderer, getLight, getPositionOffset, getRenderManager, method_27950, renderLabelIfPresent
private static final Identifier TEXTURE
private int modelSize
private final SmallPufferfishEntityModel<PufferfishEntity> smallModel
private final MediumPufferfishEntityModel<PufferfishEntity> mediumModel
private final LargePufferfishEntityModel<PufferfishEntity> largeModel
public PufferfishEntityRenderer(EntityRenderDispatcher dispatcher)
public Identifier getTexture(PufferfishEntity pufferfishEntity)
getTexture
in interface FeatureRendererContext<PufferfishEntity,EntityModel<PufferfishEntity>>
getTexture
in class EntityRenderer<PufferfishEntity>
public void render(PufferfishEntity pufferfishEntity, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
render
in class MobEntityRenderer<PufferfishEntity,EntityModel<PufferfishEntity>>
protected void setupTransforms(PufferfishEntity pufferfishEntity, MatrixStack matrixStack, float float2, float float3, float float4)
setupTransforms
in class LivingEntityRenderer<PufferfishEntity,EntityModel<PufferfishEntity>>