Class WolfEntityRenderer
java.lang.Object
net.minecraft.client.render.entity.EntityRenderer<T>
net.minecraft.client.render.entity.LivingEntityRenderer<T,M>
net.minecraft.client.render.entity.MobEntityRenderer<WolfEntity,WolfEntityModel<WolfEntity>>
net.minecraft.client.render.entity.WolfEntityRenderer
- All Implemented Interfaces:
FeatureRendererContext<WolfEntity,WolfEntityModel<WolfEntity>>
@Environment(CLIENT) public class WolfEntityRenderer extends MobEntityRenderer<WolfEntity,WolfEntityModel<WolfEntity>>
-
Field Summary
Fields Modifier and Type Field Description private static Identifier
ANGRY_TEXTURE
private static Identifier
TAMED_TEXTURE
private static Identifier
WILD_TEXTURE
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 WolfEntityRenderer(EntityRenderDispatcher dispatcher)
-
Method Summary
Modifier and Type Method Description protected float
getAnimationProgress(WolfEntity wolfEntity, float float2)
This value is passed to other methods when calculating angles for animation.Identifier
getTexture(WolfEntity wolfEntity)
void
render(WolfEntity wolfEntity, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
Methods inherited from class net.minecraft.client.render.entity.MobEntityRenderer
hasLabel, method_23186, method_23187, shouldRender
Methods inherited from class net.minecraft.client.render.entity.LivingEntityRenderer
addFeature, getAnimationCounter, getHandSwingProgress, getLyingAngle, getModel, getOverlay, getRenderLayer, isShaking, isVisible, scale, setupTransforms
Methods inherited from class net.minecraft.client.render.entity.EntityRenderer
getBlockLight, getFontRenderer, getLight, getPositionOffset, getRenderManager, method_27950, renderLabelIfPresent
-
Field Details
-
WILD_TEXTURE
-
TAMED_TEXTURE
-
ANGRY_TEXTURE
-
-
Constructor Details
-
WolfEntityRenderer
-
-
Method Details
-
getAnimationProgress
Description copied from class:LivingEntityRenderer
This value is passed to other methods when calculating angles for animation. It's typically just the sum of the entity's age (in ticks) and the passed in tickDelta.- Overrides:
getAnimationProgress
in classLivingEntityRenderer<WolfEntity,WolfEntityModel<WolfEntity>>
-
render
public void render(WolfEntity wolfEntity, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)- Overrides:
render
in classMobEntityRenderer<WolfEntity,WolfEntityModel<WolfEntity>>
-
getTexture
- Specified by:
getTexture
in interfaceFeatureRendererContext<WolfEntity,WolfEntityModel<WolfEntity>>
- Specified by:
getTexture
in classEntityRenderer<WolfEntity>
-