Class PiglinEntityRenderer
java.lang.Object
net.minecraft.client.render.entity.EntityRenderer<T>
net.minecraft.client.render.entity.LivingEntityRenderer<T,M>
net.minecraft.client.render.entity.MobEntityRenderer<T,M>
net.minecraft.client.render.entity.BipedEntityRenderer<MobEntity,PiglinEntityModel<MobEntity>>
net.minecraft.client.render.entity.PiglinEntityRenderer
- All Implemented Interfaces:
FeatureRendererContext<MobEntity,PiglinEntityModel<MobEntity>>
@Environment(CLIENT) public class PiglinEntityRenderer extends BipedEntityRenderer<MobEntity,PiglinEntityModel<MobEntity>>
- Mappings:
Namespace Name official env
intermediary net/minecraft/class_4842
named net/minecraft/client/render/entity/PiglinEntityRenderer
-
Field Summary
Fields Modifier and Type Field Description private static Map<EntityType<?>,Identifier>
TEXTURES
Fields inherited from class net.minecraft.client.render.entity.LivingEntityRenderer
features, model
Fields inherited from class net.minecraft.client.render.entity.EntityRenderer
dispatcher, shadowOpacity, shadowRadius
-
Constructor Summary
Constructors Constructor Description PiglinEntityRenderer(EntityRendererFactory.Context ctx, EntityModelLayer mainLayer, EntityModelLayer innerArmorLayer, EntityModelLayer outerArmorLayer, boolean zombie)
-
Method Summary
Modifier and Type Method Description private static PiglinEntityModel<MobEntity>
getPiglinModel(EntityModelLoader modelLoader, EntityModelLayer layer, boolean zombie)
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.Methods inherited from class net.minecraft.client.render.entity.MobEntityRenderer
hasLabel, render, shouldRender
Methods inherited from class net.minecraft.client.render.entity.LivingEntityRenderer
addFeature, getAnimationCounter, getAnimationProgress, getHandSwingProgress, getLyingAngle, getModel, getOverlay, getRenderLayer, isVisible, scale, setupTransforms
Methods inherited from class net.minecraft.client.render.entity.EntityRenderer
getBlockLight, getFontRenderer, getLight, getPositionOffset, getSkyLight, renderLabelIfPresent
-
Field Details
-
TEXTURES
- Mappings:
Namespace Name Mixin selector official a
Lenv;a:Ljava/util/Map;
intermediary field_25793
Lnet/minecraft/class_4842;field_25793:Ljava/util/Map;
named TEXTURES
Lnet/minecraft/client/render/entity/PiglinEntityRenderer;TEXTURES:Ljava/util/Map;
-
-
Constructor Details
-
PiglinEntityRenderer
public PiglinEntityRenderer(EntityRendererFactory.Context ctx, EntityModelLayer mainLayer, EntityModelLayer innerArmorLayer, EntityModelLayer outerArmorLayer, boolean zombie)- Mappings:
Namespace Name Mixin selector official <init>
Lenv;<init>(Lemj$a;Ledf;Ledf;Ledf;Z)V
intermediary <init>
Lnet/minecraft/class_4842;<init>(Lnet/minecraft/class_5617$class_5618;Lnet/minecraft/class_5601;Lnet/minecraft/class_5601;Lnet/minecraft/class_5601;Z)V
named <init>
Lnet/minecraft/client/render/entity/PiglinEntityRenderer;<init>(Lnet/minecraft/client/render/entity/EntityRendererFactory$Context;Lnet/minecraft/client/render/entity/model/EntityModelLayer;Lnet/minecraft/client/render/entity/model/EntityModelLayer;Lnet/minecraft/client/render/entity/model/EntityModelLayer;Z)V
-
-
Method Details
-
getPiglinModel
private static PiglinEntityModel<MobEntity> getPiglinModel(EntityModelLoader modelLoader, EntityModelLayer layer, boolean zombie)- Mappings:
Namespace Name Mixin selector official a
Lenv;a(Ledd;Ledf;Z)Lebr;
intermediary method_24875
Lnet/minecraft/class_4842;method_24875(Lnet/minecraft/class_5599;Lnet/minecraft/class_5601;Z)Lnet/minecraft/class_4840;
named getPiglinModel
Lnet/minecraft/client/render/entity/PiglinEntityRenderer;getPiglinModel(Lnet/minecraft/client/render/entity/model/EntityModelLoader;Lnet/minecraft/client/render/entity/model/EntityModelLayer;Z)Lnet/minecraft/client/render/entity/model/PiglinEntityModel;
-
getTexture
- Specified by:
getTexture
in interfaceFeatureRendererContext<MobEntity,PiglinEntityModel<MobEntity>>
- Overrides:
getTexture
in classBipedEntityRenderer<MobEntity,PiglinEntityModel<MobEntity>>
- Mappings:
Namespace Name Mixin selector official method_3982
Lenv;method_3982(Larj;)Lwb;
intermediary method_3982
Lnet/minecraft/class_4842;method_3982(Lnet/minecraft/class_1308;)Lnet/minecraft/class_2960;
named getTexture
Lnet/minecraft/client/render/entity/PiglinEntityRenderer;getTexture(Lnet/minecraft/entity/mob/MobEntity;)Lnet/minecraft/util/Identifier;
-
isShaking
Description copied from class:LivingEntityRenderer
Returns if this entity is shaking in the way a zombie villager, zombie, husk, or piglin undergoing conversion shakes. husk, or piglin are undergoing conversion.- Overrides:
isShaking
in classLivingEntityRenderer<MobEntity,PiglinEntityModel<MobEntity>>
- Mappings:
Namespace Name Mixin selector official c
Lenv;c(Larj;)Z
intermediary method_25451
Lnet/minecraft/class_4842;method_25451(Lnet/minecraft/class_1308;)Z
named isShaking
Lnet/minecraft/client/render/entity/PiglinEntityRenderer;isShaking(Lnet/minecraft/entity/mob/MobEntity;)Z
-