Class AbstractPokemonRenderer<E extends AbstractClientEntity>

java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M>
net.minecraft.client.renderer.entity.MobRenderer<E,PixelmonModelBase<E>>
com.pixelmonmod.pixelmon.client.render.entity.renderers.AbstractPokemonRenderer<E>
All Implemented Interfaces:
net.minecraft.client.renderer.entity.RenderLayerParent<E,PixelmonModelBase<E>>
Direct Known Subclasses:
PixelmonRenderer, StatueRenderer

public abstract class AbstractPokemonRenderer<E extends AbstractClientEntity> extends net.minecraft.client.renderer.entity.MobRenderer<E,PixelmonModelBase<E>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected String
     

    Fields inherited from class net.minecraft.client.renderer.entity.MobRenderer

    LEASH_RENDER_STEPS

    Fields inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer

    layers, model

    Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer

    entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractPokemonRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context manager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected float
    calculateScale(AbstractClientEntity entity, com.mojang.blaze3d.vertex.PoseStack matrix)
     
    protected ModelData[]
    getModelData(E entityIn)
     
    net.minecraft.resources.ResourceLocation
     
    void
    render(E entityIn, float entityYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int packedLight)
     
    protected void
    renderLabel(E entity, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int light, boolean owned)
     
    void
    renderNameTag(E entity, net.minecraft.network.chat.Component name, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int light)
     
    void
    scale(E entity, com.mojang.blaze3d.vertex.PoseStack matrix, float partialTicks)
     
    protected boolean
    shouldShowName(E entity)
     

    Methods inherited from class net.minecraft.client.renderer.entity.MobRenderer

    renderLeash, shouldRender

    Methods inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer

    addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isEntityUpsideDown, isShaking, setupRotations

    Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer

    getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • lvlTag

      protected String lvlTag
    • bossTag

      protected String bossTag
  • Constructor Details

    • AbstractPokemonRenderer

      public AbstractPokemonRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context manager)
  • Method Details

    • shouldShowName

      protected boolean shouldShowName(E entity)
      Overrides:
      shouldShowName in class net.minecraft.client.renderer.entity.MobRenderer<E extends AbstractClientEntity,PixelmonModelBase<E extends AbstractClientEntity>>
    • getTextureLocation

      public net.minecraft.resources.ResourceLocation getTextureLocation(E entity)
      Specified by:
      getTextureLocation in interface net.minecraft.client.renderer.entity.RenderLayerParent<E extends AbstractClientEntity,PixelmonModelBase<E extends AbstractClientEntity>>
      Specified by:
      getTextureLocation in class net.minecraft.client.renderer.entity.EntityRenderer<E extends AbstractClientEntity>
    • scale

      public void scale(E entity, com.mojang.blaze3d.vertex.PoseStack matrix, float partialTicks)
      Overrides:
      scale in class net.minecraft.client.renderer.entity.LivingEntityRenderer<E extends AbstractClientEntity,PixelmonModelBase<E extends AbstractClientEntity>>
    • render

      public void render(E entityIn, float entityYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int packedLight)
      Overrides:
      render in class net.minecraft.client.renderer.entity.MobRenderer<E extends AbstractClientEntity,PixelmonModelBase<E extends AbstractClientEntity>>
    • getModelData

      protected ModelData[] getModelData(E entityIn)
    • renderLabel

      protected void renderLabel(E entity, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int light, boolean owned)
    • calculateScale

      protected float calculateScale(AbstractClientEntity entity, com.mojang.blaze3d.vertex.PoseStack matrix)
    • renderNameTag

      public void renderNameTag(E entity, net.minecraft.network.chat.Component name, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int light)
      Overrides:
      renderNameTag in class net.minecraft.client.renderer.entity.EntityRenderer<E extends AbstractClientEntity>