Uses of Record Class
net.minecraft.world.item.component.SwingAnimation
Packages that use SwingAnimation
Package
Description
-
Uses of SwingAnimation in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type SwingAnimationModifier and TypeMethodDescriptionvoidMultiPlayerGameMode.piercingAttack(SwingAnimation swingAnimation, PiercingWeapon weapon) -
Uses of SwingAnimation in net.minecraft.core.component
Fields in net.minecraft.core.component with type parameters of type SwingAnimationModifier and TypeFieldDescriptionstatic final DataComponentType<SwingAnimation> DataComponents.ATTACK_ANIMATIONstatic final DataComponentType<SwingAnimation> DataComponents.INTERACT_ANIMATION -
Uses of SwingAnimation in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as SwingAnimationModifier and TypeFieldDescriptionprivate final SwingAnimationClientboundSwingAnimationPacket.animationThe field for theanimationrecord component.Methods in net.minecraft.network.protocol.game that return SwingAnimationModifier and TypeMethodDescriptionClientboundSwingAnimationPacket.animation()Returns the value of theanimationrecord component.Constructors in net.minecraft.network.protocol.game with parameters of type SwingAnimationModifierConstructorDescriptionClientboundSwingAnimationPacket(int entityId, InteractionHand hand, SwingAnimation animation) Creates an instance of aClientboundSwingAnimationPacketrecord class.ClientboundSwingAnimationPacket(Entity entity, InteractionHand hand, SwingAnimation animation) -
Uses of SwingAnimation in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type SwingAnimationModifier and TypeMethodDescriptionvoidServerPlayer.swingAndResetAttackStrength(InteractionHand hand, SwingAnimation animation, boolean sendToSwingingEntity) -
Uses of SwingAnimation in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as SwingAnimationModifier and TypeFieldDescriptionprivate final SwingAnimationLivingEntity.SwingDescription.animationThe field for theanimationrecord component.Methods in net.minecraft.world.entity that return SwingAnimationModifier and TypeMethodDescriptionLivingEntity.SwingDescription.animation()Returns the value of theanimationrecord component.Methods in net.minecraft.world.entity with parameters of type SwingAnimationModifier and TypeMethodDescriptionprivate intLivingEntity.getModifiedSwingDuration(SwingAnimation animation) private voidLivingEntity.SwingState.start(InteractionHand hand, SwingAnimation animation, int durationTicks) booleanLivingEntity.SwingState.startIfAble(InteractionHand hand, SwingAnimation animation, int durationTicks) booleanLivingEntity.swing(InteractionHand hand, SwingAnimation animation, boolean sendToSwingingEntity) voidMob.swing(InteractionHand hand, SwingAnimation animation) voidLivingEntity.swingAndResetAttackStrength(InteractionHand hand, SwingAnimation animation, boolean sendToSwingingEntity) Deprecated.Constructors in net.minecraft.world.entity with parameters of type SwingAnimationModifierConstructorDescriptionSwingDescription(InteractionHand hand, SwingAnimation animation, int durationTicks) Creates an instance of aSwingDescriptionrecord class. -
Uses of SwingAnimation in net.minecraft.world.item
Methods in net.minecraft.world.item that return SwingAnimationModifier and TypeMethodDescriptionItemStack.getAttackAnimation()ItemStack.getInteractAnimation() -
Uses of SwingAnimation in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as SwingAnimationFields in net.minecraft.world.item.component with type parameters of type SwingAnimationModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SwingAnimation> SwingAnimation.CODECstatic final StreamCodec<io.netty.buffer.ByteBuf, SwingAnimation> SwingAnimation.STREAM_CODEC