Interface EntitySleepEvents.ModifyWakeUpPosition

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.ModifyWakeUpPosition
  • Method Details

    • modifyWakeUpPosition

      @Nullable @Nullable Vec3d modifyWakeUpPosition(LivingEntity entity, BlockPos sleepingPos, BlockState bedState, @Nullable @Nullable Vec3d wakeUpPos)
      Modifies or provides a wake-up position for an entity waking up.
      Parameters:
      entity - the sleeping entity
      sleepingPos - the position of the block slept on
      bedState - the block slept on
      wakeUpPos - the old wake-up position, or null if not determined by vanilla or previous callbacks
      Returns:
      the new wake-up position