History - net.minecraft.world.item.component.Consumable

25w18a

Names

dcp

ddf

Fields

float: d, consumeSeconds, comp_3085, consumeSeconds, f_346490_

float: d, consumeSeconds, comp_3085

ItemUseAnimation: e, animation, comp_3086, useAction, f_348643_

ItemUseAnimation: e, animation, comp_3086

Holder<SoundEvent>: f, sound, comp_3087, sound, f_346592_

Holder<SoundEvent>: f, sound, comp_3087

boolean: g, hasConsumeParticles, comp_3088, hasConsumeParticles, f_348304_

boolean: g, hasConsumeParticles, comp_3088

List<ConsumeEffect>: h, onConsumeEffects, comp_3089, onConsumeEffects, f_347156_

List<ConsumeEffect>: h, onConsumeEffects, comp_3089

float: a, DEFAULT_CONSUME_SECONDS, field_53769, DEFAULT_CONSUME_SECONDS, f_346555_

float: a, DEFAULT_CONSUME_SECONDS, field_53769

int: i, CONSUME_EFFECTS_INTERVAL, field_53772, PARTICLES_AND_SOUND_TICK_INTERVAL, f_346421_

int: i, CONSUME_EFFECTS_INTERVAL, field_53772

float: j, CONSUME_EFFECTS_START_FRACTION, field_53773, PARTICLES_AND_SOUND_TICK_THRESHOLD, f_348435_

float: j, CONSUME_EFFECTS_START_FRACTION, field_53773

com.mojang.serialization.Codec<Consumable>: b, CODEC, field_53770, CODEC, f_348058_

com.mojang.serialization.Codec<Consumable>: b, CODEC, field_53770

StreamCodec<RegistryFriendlyByteBuf, Consumable>: c, STREAM_CODEC, field_53771, PACKET_CODEC, f_346569_

StreamCodec<RegistryFriendlyByteBuf, Consumable>: c, STREAM_CODEC, field_53771

Constructors

Methods

InteractionResult (LivingEntity, ItemStack, InteractionHand): a, startConsuming, method_62845, consume, m_352451_

InteractionResult (LivingEntity, ItemStack, InteractionHand): a, startConsuming, method_62845

ItemStack (Level, LivingEntity, ItemStack): a, onConsume, method_62847, finishConsumption, m_356253_

ItemStack (Level, LivingEntity, ItemStack): a, onConsume, method_62847

boolean (LivingEntity, ItemStack): a, canConsume, method_62844, canConsume, m_353816_

boolean (LivingEntity, ItemStack): a, canConsume, method_62844

int (): a, consumeTicks, method_62841, getConsumeTicks, m_355968_

int (): a, consumeTicks, method_62841

void (RandomSource, LivingEntity, ItemStack, int): a, emitParticlesAndSounds, method_62843, spawnParticlesAndPlaySound, m_353588_

void (RandomSource, LivingEntity, ItemStack, int): a, emitParticlesAndSounds, method_62843

boolean (int): a, shouldEmitParticlesAndSounds, method_62842, shouldSpawnParticlesAndPlaySounds, m_354174_

boolean (int): a, shouldEmitParticlesAndSounds, method_62842

Consumable$Builder (): b, builder, method_62850, builder, m_354046_

Consumable$Builder (): b, builder, method_62850

float (): c, consumeSeconds, comp_3085, consumeSeconds, f_346490_

float (): c, consumeSeconds, comp_3085

ItemUseAnimation (): d, animation, comp_3086, useAction, f_348643_

ItemUseAnimation (): d, animation, comp_3086

Holder<SoundEvent> (): e, sound, comp_3087, sound, f_346592_

Holder<SoundEvent> (): e, sound, comp_3087

boolean (): f, hasConsumeParticles, comp_3088, hasConsumeParticles, f_348304_

boolean (): f, hasConsumeParticles, comp_3088

List<ConsumeEffect> (): g, onConsumeEffects, comp_3089, onConsumeEffects, f_347156_

List<ConsumeEffect> (): g, onConsumeEffects, comp_3089

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_

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_