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.deathEffects
The field for thedeathEffects
record component.private final List
<ConsumeEffect> Consumable.Builder.onConsumeEffects
private final List
<ConsumeEffect> Consumable.onConsumeEffects
The field for theonConsumeEffects
record component.Methods in net.minecraft.world.item.component that return types with arguments of type ConsumeEffectModifier and TypeMethodDescriptionDeathProtection.deathEffects()
Returns the value of thedeathEffects
record component.Consumable.onConsumeEffects()
Returns the value of theonConsumeEffects
record 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 aConsumable
record class.DeathProtection
(List<ConsumeEffect> deathEffects) Creates an instance of aDeathProtection
record 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 record
final record
final record
final record
final record
Fields in net.minecraft.world.item.consume_effects with type parameters of type ConsumeEffectModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ConsumeEffect> ConsumeEffect.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, ConsumeEffect> ConsumeEffect.STREAM_CODEC
Methods 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 p_366473_, com.mojang.serialization.MapCodec<T> p_366539_, StreamCodec<RegistryFriendlyByteBuf, T> p_366490_) Methods in net.minecraft.world.item.consume_effects that return types with arguments of type ConsumeEffectModifier and TypeMethodDescriptionConsumeEffect.Type
<? extends ConsumeEffect> ConsumeEffect.getType()