Uses of Enum Class
net.minecraft.world.item.ItemUseAnimation
Packages that use ItemUseAnimation
-
Uses of ItemUseAnimation in net.minecraft.world.item
Fields in net.minecraft.world.item with type parameters of type ItemUseAnimationModifier and TypeFieldDescriptionprivate static final IntFunction
<ItemUseAnimation> ItemUseAnimation.BY_ID
static final com.mojang.serialization.Codec
<ItemUseAnimation> ItemUseAnimation.CODEC
static final StreamCodec
<io.netty.buffer.ByteBuf, ItemUseAnimation> ItemUseAnimation.STREAM_CODEC
Methods in net.minecraft.world.item that return ItemUseAnimationModifier and TypeMethodDescriptionBowItem.getUseAnimation
(ItemStack p_40678_) BrushItem.getUseAnimation
(ItemStack p_273490_) BundleItem.getUseAnimation
(ItemStack p_389672_) CrossbowItem.getUseAnimation
(ItemStack p_40935_) InstrumentItem.getUseAnimation
(ItemStack p_220133_) Item.getUseAnimation
(ItemStack p_41452_) ItemStack.getUseAnimation()
SpyglassItem.getUseAnimation
(ItemStack p_151224_) TridentItem.getUseAnimation
(ItemStack p_43417_) static ItemUseAnimation
Returns the enum constant of this class with the specified name.static ItemUseAnimation[]
ItemUseAnimation.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of ItemUseAnimation in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as ItemUseAnimationModifier and TypeFieldDescriptionprivate final ItemUseAnimation
Consumable.animation
The field for theanimation
record component.private ItemUseAnimation
Consumable.Builder.animation
Methods in net.minecraft.world.item.component that return ItemUseAnimationModifier and TypeMethodDescriptionConsumable.animation()
Returns the value of theanimation
record component.Methods in net.minecraft.world.item.component with parameters of type ItemUseAnimationConstructors in net.minecraft.world.item.component with parameters of type ItemUseAnimationModifierConstructorDescriptionConsumable
(float consumeSeconds, ItemUseAnimation animation, Holder<SoundEvent> sound, boolean hasConsumeParticles, List<ConsumeEffect> onConsumeEffects) Creates an instance of aConsumable
record class.