History - net.minecraft.component.type.ConsumableComponent
26.3-snapshot-3
Names
Fields
Constructors
Methods
26.3-snapshot-2
Names
Fields
Constructors
Methods
26.3-snapshot-1
Names
Fields
Constructors
Methods
26.2
Names
Fields
Constructors
Methods
26.1.2
Names
Fields
Constructors
Methods
26.1.1
Names
Fields
Constructors
Methods
26.1
Names
Fields
Constructors
Methods
void (World, ItemStack, LivingEntity, ConsumeEffect): lambda$onConsume$2, method_62849, method_62849
void (World, ItemStack, LivingEntity, ConsumeEffect): lambda$onConsume$1, method_62849, method_62849
void (World, LivingEntity, ItemStack, Consumable): lambda$onConsume$1, method_62848, method_62848
void (World, LivingEntity, ItemStack, Consumable): lambda$onConsume$0, method_62848, method_62848
1.21.11_unobfuscated
Names
net.minecraft.world.item.component.Consumable
net.minecraft.class_10124
net.minecraft.component.type.ConsumableComponent
Fields
float: consumeSeconds, comp_3085, consumeSeconds
UseAction: animation, comp_3086, useAction
RegistryEntry<SoundEvent>: sound, comp_3087, sound
boolean: hasConsumeParticles, comp_3088, hasConsumeParticles
List<ConsumeEffect>: onConsumeEffects, comp_3089, onConsumeEffects
float: DEFAULT_CONSUME_SECONDS, field_53769, DEFAULT_CONSUME_SECONDS
int: CONSUME_EFFECTS_INTERVAL, field_53772, PARTICLES_AND_SOUND_TICK_INTERVAL
float: CONSUME_EFFECTS_START_FRACTION, field_53773, PARTICLES_AND_SOUND_TICK_THRESHOLD
com.mojang.serialization.Codec<ConsumableComponent>: CODEC, field_53770, CODEC
PacketCodec<RegistryByteBuf, ConsumableComponent>: STREAM_CODEC, field_53771, PACKET_CODEC
Constructors
(float, UseAction, RegistryEntry<SoundEvent>, boolean, List<ConsumeEffect>)
Methods
ActionResult (LivingEntity, ItemStack, Hand): startConsuming, method_62845, consume
ItemStack (World, LivingEntity, ItemStack): onConsume, method_62847, finishConsumption
boolean (LivingEntity, ItemStack): canConsume, method_62844, canConsume
int (): consumeTicks, method_62841, getConsumeTicks
void (Random, LivingEntity, ItemStack, int): emitParticlesAndSounds, method_62843, spawnParticlesAndPlaySound
boolean (int): shouldEmitParticlesAndSounds, method_62842, shouldSpawnParticlesAndPlaySounds
ConsumableComponent$Builder (): builder, method_62850, builder
float (): consumeSeconds, comp_3085, consumeSeconds
UseAction (): animation, comp_3086, useAction
RegistryEntry<SoundEvent> (): sound, comp_3087, sound
boolean (): hasConsumeParticles, comp_3088, hasConsumeParticles
List<ConsumeEffect> (): onConsumeEffects, comp_3089, onConsumeEffects
void (World, ItemStack, LivingEntity, ConsumeEffect): lambda$onConsume$2, method_62849, method_62849
void (World, LivingEntity, ItemStack, Consumable): lambda$onConsume$1, method_62848, method_62848
com.mojang.datafixers.kinds.App (com.mojang.serialization.codecs.RecordCodecBuilder$Instance): lambda$static$0, method_62846, method_62846