Interface EntitySleepEvents.AllowResettingTime

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.AllowResettingTime
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allowResettingTime(net.minecraft.entity.player.PlayerEntity player)
    Checks whether a sleeping player counts into skipping the current day and resetting the time to 0.
  • Method Details

    • allowResettingTime

      boolean allowResettingTime(net.minecraft.entity.player.PlayerEntity player)
      Checks whether a sleeping player counts into skipping the current day and resetting the time to 0.
      Parameters:
      player - the sleeping player
      Returns:
      true if allowed, false otherwise