net.minecraft.world.item.consume_effects

public record ApplyStatusEffectsConsumeEffect

implements ConsumeEffect

daz
net.minecraft.world.item.consume_effects.ApplyStatusEffectsConsumeEffect
net.minecraft.class_10132
net.minecraft.item.consume.ApplyEffectsConsumeEffect
net.minecraft.world.item.consume_effects.ApplyStatusEffectsConsumeEffect

Field summary

Modifier and TypeField
private final List<MobEffectInstance>
c
effects
comp_3094
effects
private final float
f
probability
comp_3095
probability
public static final com.mojang.serialization.MapCodec<ApplyStatusEffectsConsumeEffect>
a
CODEC
field_53803
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ApplyStatusEffectsConsumeEffect>
b
STREAM_CODEC
field_53804
PACKET_CODEC

Constructor summary

ModifierConstructor
public (MobEffectInstance effect, float probability)
public (List<MobEffectInstance> effects)
public (MobEffectInstance effect)
public (List<MobEffectInstance> arg0, float arg1)

Method summary

Modifier and TypeMethod
public ConsumeEffect$Type<ApplyStatusEffectsConsumeEffect>
a()
getType()
method_62864()
getType()
public boolean
a(dhi arg0, cxp arg1, bwg arg2)
apply(Level arg0, ItemStack arg1, LivingEntity arg2)
method_62866(class_1937 arg0, class_1799 arg1, class_1309 arg2)
onConsume(World arg0, ItemStack arg1, LivingEntity arg2)
public List<MobEffectInstance>
b()
effects()
comp_3094()
effects()
public float
c()
probability()
comp_3095()
probability()