历史 - net.minecraft.world.item.component.Consumable

1.21.11

名称

djv

dob

字段

构造函数

方法

1.21.10

名称

字段

构造函数

方法

1.21.9

名称

dfa

djv

字段

构造函数

方法

1.21.8

名称

字段

构造函数

方法

1.21.7

名称

字段

构造函数

方法

1.21.6

名称

dcp

dfa

字段

构造函数

方法

1.21.5

名称

cyw

dcp

字段

构造函数

方法

1.21.4

名称

czv

cyw

字段

构造函数

方法

1.21.3

名称

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

字段

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_

构造函数

(float, ItemUseAnimation, Holder<SoundEvent>, boolean, List<ConsumeEffect>)

方法

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_