@Environment(value=CLIENT) public class PiglinEntityRenderer extends BipedEntityRenderer<MobEntity,PiglinEntityModel<MobEntity>>
Modifier and Type | Field and Description |
---|---|
private static Identifier |
PIGLIN_TEXTURE |
private static Identifier |
ZOMBIFIED_PIGLIN_TEXTURE |
features, model
dispatcher, shadowOpacity, shadowRadius
Constructor and Description |
---|
PiglinEntityRenderer(EntityRenderDispatcher dispatcher,
boolean zombified) |
Modifier and Type | Method and Description |
---|---|
private static <T extends MobEntity> |
createEarlessPiglinModel() |
private static PiglinEntityModel<MobEntity> |
getPiglinModel(boolean zombified) |
Identifier |
getTexture(MobEntity mobEntity) |
protected boolean |
isShaking(MobEntity mobEntity)
Returns if this entity is shaking in the way a zombie villager,
zombie, husk, or piglin undergoing conversion shakes.
|
hasLabel, method_23186, method_23187, render, shouldRender
addFeature, getAnimationCounter, getAnimationProgress, getHandSwingProgress, getLyingAngle, getModel, getOverlay, getRenderLayer, isVisible, scale, setupTransforms
getBlockLight, getFontRenderer, getLight, getPositionOffset, getRenderManager, renderLabelIfPresent
private static final Identifier PIGLIN_TEXTURE
private static final Identifier ZOMBIFIED_PIGLIN_TEXTURE
public PiglinEntityRenderer(EntityRenderDispatcher dispatcher, boolean zombified)
private static PiglinEntityModel<MobEntity> getPiglinModel(boolean zombified)
private static <T extends MobEntity> PiglinEntityModel<T> createEarlessPiglinModel()
public Identifier getTexture(MobEntity mobEntity)
getTexture
in interface FeatureRendererContext<MobEntity,PiglinEntityModel<MobEntity>>
getTexture
in class BipedEntityRenderer<MobEntity,PiglinEntityModel<MobEntity>>
protected boolean isShaking(MobEntity mobEntity)
LivingEntityRenderer
isShaking
in class LivingEntityRenderer<MobEntity,PiglinEntityModel<MobEntity>>