Interface AnimationOverlap
- All Known Implementing Classes:
PlayerPoseOverlap
public interface AnimationOverlap
Another mod that animates vanilla models, made known so vanilla-model clips can share parts with it: where its
animation overlaps the clips' on a part, the model's
OverlapRule decides which shows. CoolCatLib knows the
player animation mod Better Combat uses by itself; register others while the client sets up, with
VanillaModels.registerOverlap(AnimationOverlap).-
Method Summary
Modifier and TypeMethodDescriptionbooleanisAnimating(net.minecraft.world.entity.LivingEntity entity) Whether it is animating the entity at all, for drivers and conditions (VanillaModels.hasOverlap(LivingEntity)).overlappingParts(net.minecraft.client.renderer.entity.state.LivingEntityRenderState state) The parts it is moving on the model posed for this state, by vanilla part name ("right_arm"); empty when it moves nothing.default booleanskipsDraw(net.minecraft.client.renderer.entity.state.LivingEntityRenderState state) Whether this draw is one of its own that clips and worn armatures should stay out of, such as a first-person pass drawing the player's arms in front of the camera.
-
Method Details
-
overlappingParts
Set<String> overlappingParts(net.minecraft.client.renderer.entity.state.LivingEntityRenderState state) The parts it is moving on the model posed for this state, by vanilla part name ("right_arm"); empty when it moves nothing. Asked once per entity per frame, after vanilla and the other mod have posed the model. -
isAnimating
boolean isAnimating(net.minecraft.world.entity.LivingEntity entity) Whether it is animating the entity at all, for drivers and conditions (VanillaModels.hasOverlap(LivingEntity)). -
skipsDraw
default boolean skipsDraw(net.minecraft.client.renderer.entity.state.LivingEntityRenderState state) Whether this draw is one of its own that clips and worn armatures should stay out of, such as a first-person pass drawing the player's arms in front of the camera.
-