History - net.minecraft.world.item.component.Consumable
1.21.8
Names
Fields
Constructors
Methods
1.21.7
Names
Fields
Constructors
Methods
1.21.6
Names
dcp
dfa
Fields
Constructors
Methods
1.21.5
Names
cyw
dcp
Fields
Constructors
Methods
1.21.4
Names
czv
cyw
Fields
Constructors
Methods
1.21.3
Names
czv
net.minecraft.world.item.component.Consumable
net.minecraft.class_10124
net.minecraft.component.type.ConsumableComponent
net.minecraft.src.C_345888_
net.minecraft.world.item.component.Consumable
Fields
float: d, consumeSeconds, comp_3085, consumeSeconds, f_346490_
ItemUseAnimation: e, animation, comp_3086, useAction, f_348643_
Holder<SoundEvent>: f, sound, comp_3087, sound, f_346592_
boolean: g, hasConsumeParticles, comp_3088, hasConsumeParticles, f_348304_
List<ConsumeEffect>: h, onConsumeEffects, comp_3089, onConsumeEffects, f_347156_
float: a, DEFAULT_CONSUME_SECONDS, field_53769, DEFAULT_CONSUME_SECONDS, f_346555_
int: i, CONSUME_EFFECTS_INTERVAL, field_53772, PARTICLES_AND_SOUND_TICK_INTERVAL, f_346421_
float: j, CONSUME_EFFECTS_START_FRACTION, field_53773, PARTICLES_AND_SOUND_TICK_THRESHOLD, f_348435_
com.mojang.serialization.Codec<Consumable>: b, CODEC, field_53770, CODEC, f_348058_
StreamCodec<RegistryFriendlyByteBuf, Consumable>: c, STREAM_CODEC, field_53771, PACKET_CODEC, f_346569_
Constructors
(float, ItemUseAnimation, Holder<SoundEvent>, boolean, List<ConsumeEffect>)
Methods
InteractionResult (LivingEntity, ItemStack, InteractionHand): a, startConsuming, method_62845, consume, m_352451_
ItemStack (Level, LivingEntity, ItemStack): a, onConsume, method_62847, finishConsumption, m_356253_
boolean (LivingEntity, ItemStack): a, canConsume, method_62844, canConsume, m_353816_
int (): a, consumeTicks, method_62841, getConsumeTicks, m_355968_
void (RandomSource, LivingEntity, ItemStack, int): a, emitParticlesAndSounds, method_62843, spawnParticlesAndPlaySound, m_353588_
boolean (int): a, shouldEmitParticlesAndSounds, method_62842, shouldSpawnParticlesAndPlaySounds, m_354174_
Consumable$Builder (): b, builder, method_62850, builder, m_354046_
float (): c, consumeSeconds, comp_3085, consumeSeconds, f_346490_
ItemUseAnimation (): d, animation, comp_3086, useAction, f_348643_
Holder<SoundEvent> (): e, sound, comp_3087, sound, f_346592_
boolean (): f, hasConsumeParticles, comp_3088, hasConsumeParticles, f_348304_
List<ConsumeEffect> (): g, onConsumeEffects, comp_3089, onConsumeEffects, f_347156_