public class PufferfishRenderer extends MobRenderer<PufferfishEntity,EntityModel<PufferfishEntity>>
Modifier and Type | Field and Description |
---|---|
private int |
lastPuffState |
private PufferFishBigModel<PufferfishEntity> |
modelLarge |
private PufferFishMediumModel<PufferfishEntity> |
modelMedium |
private PufferFishSmallModel<PufferfishEntity> |
modelSmall |
private static ResourceLocation |
PUFFERFISH_TEXTURES |
entityModel, layerRenderers
renderManager, shadowOpaque, shadowSize
Constructor and Description |
---|
PufferfishRenderer(EntityRendererManager renderManagerIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyRotations(PufferfishEntity entityLiving,
MatrixStack matrixStackIn,
float ageInTicks,
float rotationYaw,
float partialTicks) |
ResourceLocation |
getEntityTexture(PufferfishEntity entity) |
void |
render(PufferfishEntity entityIn,
float entityYaw,
float partialTicks,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn) |
addVertexPair, canRenderName, renderSide, shouldRender
addLayer, func_230042_a_, getDeathMaxRotation, getEntityModel, getOverlayProgress, getPackedOverlay, getSwingProgress, handleRotationFloat, isVisible, preRenderCallback
getBlockLight, getFontRendererFromRenderManager, getPackedLight, getRenderManager, getRenderOffset, renderName
private static final ResourceLocation PUFFERFISH_TEXTURES
private int lastPuffState
private final PufferFishSmallModel<PufferfishEntity> modelSmall
private final PufferFishMediumModel<PufferfishEntity> modelMedium
private final PufferFishBigModel<PufferfishEntity> modelLarge
public PufferfishRenderer(EntityRendererManager renderManagerIn)
public ResourceLocation getEntityTexture(PufferfishEntity entity)
getEntityTexture
in interface IEntityRenderer<PufferfishEntity,EntityModel<PufferfishEntity>>
getEntityTexture
in class EntityRenderer<PufferfishEntity>
public void render(PufferfishEntity entityIn, float entityYaw, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn)
render
in class MobRenderer<PufferfishEntity,EntityModel<PufferfishEntity>>
protected void applyRotations(PufferfishEntity entityLiving, MatrixStack matrixStackIn, float ageInTicks, float rotationYaw, float partialTicks)
applyRotations
in class LivingRenderer<PufferfishEntity,EntityModel<PufferfishEntity>>