Interface VillagerConversionCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface VillagerConversionCallback
Callback for when a LivingEntity turns into another entity, like a villager being struck by lightning. This event is fired after the conversion happens and cannot be cancelled.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.fabricmc.fabric.api.event.Event<VillagerConversionCallback>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    interact(net.minecraft.world.entity.npc.Villager original, net.minecraft.world.entity.LivingEntity outcome)
     
  • Field Details

  • Method Details

    • interact

      void interact(net.minecraft.world.entity.npc.Villager original, net.minecraft.world.entity.LivingEntity outcome)