History - net.minecraft.world.item.component.Consumable
1.21.3
Names
czv
net.minecraft.world.item.component.Consumable
net.minecraft.class_10124
net.minecraft.component.type.ConsumableComponent
net.minecraft.world.item.component.Consumable
Fields
float: d, consumeSeconds, comp_3085, consumeSeconds
ItemUseAnimation: e, animation, comp_3086, useAction
Holder<SoundEvent>: f, sound, comp_3087, sound
boolean: g, hasConsumeParticles, comp_3088, hasConsumeParticles
List<ConsumeEffect>: h, onConsumeEffects, comp_3089, onConsumeEffects
float: a, DEFAULT_CONSUME_SECONDS, field_53769, DEFAULT_CONSUME_SECONDS
int: i, CONSUME_EFFECTS_INTERVAL, field_53772, PARTICLES_AND_SOUND_TICK_INTERVAL
float: j, CONSUME_EFFECTS_START_FRACTION, field_53773, PARTICLES_AND_SOUND_TICK_THRESHOLD
com.mojang.serialization.Codec<Consumable>: b, CODEC, field_53770, CODEC
StreamCodec<RegistryFriendlyByteBuf, Consumable>: c, STREAM_CODEC, field_53771, PACKET_CODEC
Constructors
(float, ItemUseAnimation, Holder<SoundEvent>, boolean, List<ConsumeEffect>)
Methods
InteractionResult (LivingEntity, ItemStack, InteractionHand): a, startConsuming, method_62845, consume
ItemStack (Level, LivingEntity, ItemStack): a, onConsume, method_62847, finishConsumption
boolean (LivingEntity, ItemStack): a, canConsume, method_62844, canConsume
int (): a, consumeTicks, method_62841, getConsumeTicks
void (RandomSource, LivingEntity, ItemStack, int): a, emitParticlesAndSounds, method_62843, spawnParticlesAndPlaySound
boolean (int): a, shouldEmitParticlesAndSounds, method_62842, shouldSpawnParticlesAndPlaySounds
Consumable$Builder (): b, builder, method_62850, builder
float (): c, consumeSeconds, comp_3085, consumeSeconds
ItemUseAnimation (): d, animation, comp_3086, useAction
Holder<SoundEvent> (): e, sound, comp_3087, sound
boolean (): f, hasConsumeParticles, comp_3088, hasConsumeParticles
List<ConsumeEffect> (): g, onConsumeEffects, comp_3089, onConsumeEffects