Uses of Interface
net.minecraft.world.item.consume_effects.ConsumeEffect
Packages that use ConsumeEffect
-
Uses of ConsumeEffect in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component with type parameters of type ConsumeEffectModifier and TypeFieldDescriptionprivate final List<ConsumeEffect> DeathProtection.deathEffectsThe field for thedeathEffectsrecord component.private final List<ConsumeEffect> Consumable.Builder.onConsumeEffectsprivate final List<ConsumeEffect> Consumable.onConsumeEffectsThe field for theonConsumeEffectsrecord component.Methods in net.minecraft.world.item.component that return types with arguments of type ConsumeEffectModifier and TypeMethodDescriptionDeathProtection.deathEffects()Returns the value of thedeathEffectsrecord component.Consumable.onConsumeEffects()Returns the value of theonConsumeEffectsrecord component.Methods in net.minecraft.world.item.component with parameters of type ConsumeEffectConstructor parameters in net.minecraft.world.item.component with type arguments of type ConsumeEffectModifierConstructorDescriptionConsumable(float consumeSeconds, ItemUseAnimation animation, Holder<SoundEvent> sound, boolean hasConsumeParticles, List<ConsumeEffect> onConsumeEffects) Creates an instance of aConsumablerecord class.DeathProtection(List<ConsumeEffect> deathEffects) Creates an instance of aDeathProtectionrecord class. -
Uses of ConsumeEffect in net.minecraft.world.item.consume_effects
Classes in net.minecraft.world.item.consume_effects with type parameters of type ConsumeEffectClasses in net.minecraft.world.item.consume_effects that implement ConsumeEffectModifier and TypeClassDescriptionfinal recordfinal recordfinal recordfinal recordfinal recordFields in net.minecraft.world.item.consume_effects with type parameters of type ConsumeEffectModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConsumeEffect> ConsumeEffect.CODECstatic final StreamCodec<RegistryFriendlyByteBuf, ConsumeEffect> ConsumeEffect.STREAM_CODECMethods in net.minecraft.world.item.consume_effects with type parameters of type ConsumeEffectModifier and TypeMethodDescriptionprivate static <T extends ConsumeEffect>
ConsumeEffect.Type<T> ConsumeEffect.Type.register(String name, com.mojang.serialization.MapCodec<T> codec, StreamCodec<RegistryFriendlyByteBuf, T> streamCodec) Methods in net.minecraft.world.item.consume_effects that return types with arguments of type ConsumeEffectModifier and TypeMethodDescriptionConsumeEffect.Type<? extends ConsumeEffect> ConsumeEffect.getType()