Class PiglinRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.entity.EntityRenderer<T>
-
- net.minecraft.client.renderer.entity.LivingRenderer<T,M>
-
- net.minecraft.client.renderer.entity.MobRenderer<T,M>
-
- net.minecraft.client.renderer.entity.BipedRenderer<MobEntity,PiglinModel<MobEntity>>
-
- net.minecraft.client.renderer.entity.PiglinRenderer
-
- All Implemented Interfaces:
IEntityRenderer<MobEntity,PiglinModel<MobEntity>>
public class PiglinRenderer extends BipedRenderer<MobEntity,PiglinModel<MobEntity>>
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<EntityType<?>,ResourceLocation>
resourceLocations
-
Fields inherited from class net.minecraft.client.renderer.entity.LivingRenderer
layers, model
-
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
-
Constructor Summary
Constructors Constructor Description PiglinRenderer(EntityRendererManager p_i232472_1_, boolean p_i232472_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static PiglinModel<MobEntity>
createModel(boolean p_239395_0_)
ResourceLocation
getTextureLocation(MobEntity p_110775_1_)
protected boolean
isShaking(MobEntity p_230495_1_)
-
Methods inherited from class net.minecraft.client.renderer.entity.MobRenderer
addVertexPair, render, renderSide, shouldRender, shouldShowName
-
Methods inherited from class net.minecraft.client.renderer.entity.LivingRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, scale, setupRotations
-
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getDispatcher, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag
-
-
-
-
Field Detail
-
resourceLocations
private static final java.util.Map<EntityType<?>,ResourceLocation> resourceLocations
-
-
Constructor Detail
-
PiglinRenderer
public PiglinRenderer(EntityRendererManager p_i232472_1_, boolean p_i232472_2_)
-
-
Method Detail
-
createModel
private static PiglinModel<MobEntity> createModel(boolean p_239395_0_)
-
getTextureLocation
public ResourceLocation getTextureLocation(MobEntity p_110775_1_)
- Specified by:
getTextureLocation
in interfaceIEntityRenderer<MobEntity,PiglinModel<MobEntity>>
- Overrides:
getTextureLocation
in classBipedRenderer<MobEntity,PiglinModel<MobEntity>>
-
isShaking
protected boolean isShaking(MobEntity p_230495_1_)
- Overrides:
isShaking
in classLivingRenderer<MobEntity,PiglinModel<MobEntity>>
-
-