Package net.minecraft.client.model
Class HierarchicalModel<E extends Entity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.model.EntityModel<E>
net.minecraft.client.model.HierarchicalModel<E>
- Direct Known Subclasses:
AgeableHierarchicalModel,AllayModel,BatModel,BlazeModel,BreezeModel,CamelModel,CodModel,ColorableHierarchicalModel,CreeperModel,DolphinModel,EndermiteModel,EvokerFangsModel,FrogModel,GhastModel,GuardianModel,IllagerModel,IronGolemModel,LavaSlimeModel,LeashKnotModel,LlamaSpitModel,MinecartModel,ParrotModel,PhantomModel,PufferfishBigModel,PufferfishMidModel,PufferfishSmallModel,RavagerModel,SalmonModel,ShulkerBulletModel,SilverfishModel,SlimeModel,SnowGolemModel,SpiderModel,SquidModel,StriderModel,VexModel,VillagerModel,WardenModel,WindChargeModel,WitherBossModel
-
Field Summary
FieldsFields inherited from class net.minecraft.client.model.EntityModel
attackTime, riding, youngFields inherited from class net.minecraft.client.model.Model
renderType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanimate(AnimationState pAnimationState, AnimationDefinition pAnimationDefinition, float pAgeInTicks) protected voidanimate(AnimationState pAnimationState, AnimationDefinition pAnimationDefinition, float pAgeInTicks, float pSpeed) protected voidanimate(AnimationState animationState, AnimationHolder animation, float ageInTicks) protected voidanimate(AnimationState animationState, AnimationHolder animation, float ageInTicks, float speed) protected voidanimateWalk(AnimationDefinition pAnimationDefinition, float pLimbSwing, float pLimbSwingAmount, float pMaxAnimationSpeed, float pAnimationScaleFactor) protected voidanimateWalk(AnimationHolder animation, float limbSwing, float limbSwingAmount, float maxAnimationSpeed, float animationScaleFactor) protected voidapplyStatic(AnimationDefinition pAnimationDefinition) protected voidapplyStatic(AnimationHolder animation) protected static AnimationHoldergetAnyDescendantWithName(String pName) voidrenderToBuffer(PoseStack pPoseStack, VertexConsumer pBuffer, int pPackedLight, int pPackedOverlay, int pColor) abstract ModelPartroot()Methods inherited from class net.minecraft.client.model.EntityModel
copyPropertiesTo, prepareMobModel, setupAnimMethods inherited from class net.minecraft.client.model.Model
renderToBuffer, renderType
-
Field Details
-
ANIMATION_VECTOR_CACHE
private static final org.joml.Vector3f ANIMATION_VECTOR_CACHE
-
-
Constructor Details
-
HierarchicalModel
public HierarchicalModel() -
HierarchicalModel
-
-
Method Details
-
getAnimation
-
renderToBuffer
public void renderToBuffer(PoseStack pPoseStack, VertexConsumer pBuffer, int pPackedLight, int pPackedOverlay, int pColor) - Specified by:
renderToBufferin classModel
-
root
-
getAnyDescendantWithName
-
animate
protected void animate(AnimationState pAnimationState, AnimationDefinition pAnimationDefinition, float pAgeInTicks) -
animate
-
animateWalk
protected void animateWalk(AnimationDefinition pAnimationDefinition, float pLimbSwing, float pLimbSwingAmount, float pMaxAnimationSpeed, float pAnimationScaleFactor) -
animateWalk
protected void animateWalk(AnimationHolder animation, float limbSwing, float limbSwingAmount, float maxAnimationSpeed, float animationScaleFactor) -
animate
protected void animate(AnimationState pAnimationState, AnimationDefinition pAnimationDefinition, float pAgeInTicks, float pSpeed) -
animate
protected void animate(AnimationState animationState, AnimationHolder animation, float ageInTicks, float speed) -
applyStatic
-
applyStatic
-