Interface EntitySleepEvents.StartSleeping

Enclosing class:
EntitySleepEvents
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 static interface EntitySleepEvents.StartSleeping
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onStartSleeping​(net.minecraft.entity.LivingEntity entity, net.minecraft.util.math.BlockPos sleepingPos)
    Called when an entity starts to sleep.
  • Method Details

    • onStartSleeping

      void onStartSleeping(net.minecraft.entity.LivingEntity entity, net.minecraft.util.math.BlockPos sleepingPos)
      Called when an entity starts to sleep.
      Parameters:
      entity - the sleeping entity
      sleepingPos - the sleeping position of the entity