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 animationState, AnimationDefinition animationDefinition, float ageInTicks) protected voidanimate(AnimationState animationState, AnimationDefinition animationDefinition, float ageInTicks, float speed) protected voidanimate(AnimationState animationState, AnimationHolder animation, float ageInTicks) protected voidanimate(AnimationState animationState, AnimationHolder animation, float ageInTicks, float speed) protected voidanimateWalk(AnimationDefinition animationDefinition, float limbSwing, float limbSwingAmount, float maxAnimationSpeed, float animationScaleFactor) protected voidanimateWalk(AnimationHolder animation, float limbSwing, float limbSwingAmount, float maxAnimationSpeed, float animationScaleFactor) protected voidapplyStatic(AnimationDefinition animationDefinition) protected voidapplyStatic(AnimationHolder animation) protected static AnimationHoldervoidrenderToBuffer(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay, int color) 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 poseStack, VertexConsumer buffer, int packedLight, int packedOverlay, int color) - Specified by:
renderToBufferin classModel
-
root
-
getAnyDescendantWithName
-
animate
protected void animate(AnimationState animationState, AnimationDefinition animationDefinition, float ageInTicks) -
animate
-
animateWalk
protected void animateWalk(AnimationDefinition animationDefinition, float limbSwing, float limbSwingAmount, float maxAnimationSpeed, float animationScaleFactor) -
animateWalk
protected void animateWalk(AnimationHolder animation, float limbSwing, float limbSwingAmount, float maxAnimationSpeed, float animationScaleFactor) -
animate
protected void animate(AnimationState animationState, AnimationDefinition animationDefinition, float ageInTicks, float speed) -
animate
protected void animate(AnimationState animationState, AnimationHolder animation, float ageInTicks, float speed) -
applyStatic
-
applyStatic
-