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 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
ConstructorDescriptionAbstractPokemonRenderer
(net.minecraft.client.renderer.entity.EntityRendererProvider.Context manager) -
Method Summary
Modifier and TypeMethodDescriptionprotected float
calculateScale
(AbstractClientEntity entity, com.mojang.blaze3d.vertex.PoseStack matrix) protected ModelData[]
getModelData
(E entityIn) net.minecraft.resources.ResourceLocation
getTextureLocation
(E entity) 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
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
-
Field Details
-
lvlTag
-
bossTag
-
-
Constructor Details
-
AbstractPokemonRenderer
public AbstractPokemonRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context manager)
-
-
Method Details
-
shouldShowName
- Overrides:
shouldShowName
in classnet.minecraft.client.renderer.entity.MobRenderer<E extends AbstractClientEntity,
PixelmonModelBase<E extends AbstractClientEntity>>
-
getTextureLocation
- Specified by:
getTextureLocation
in interfacenet.minecraft.client.renderer.entity.RenderLayerParent<E extends AbstractClientEntity,
PixelmonModelBase<E extends AbstractClientEntity>> - Specified by:
getTextureLocation
in classnet.minecraft.client.renderer.entity.EntityRenderer<E extends AbstractClientEntity>
-
scale
- Overrides:
scale
in classnet.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 classnet.minecraft.client.renderer.entity.MobRenderer<E extends AbstractClientEntity,
PixelmonModelBase<E extends AbstractClientEntity>>
-
getModelData
-
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 classnet.minecraft.client.renderer.entity.EntityRenderer<E extends AbstractClientEntity>
-