java.lang.Object
net.vitacraft.serverlibraries.api.event.events.entities.SleepStopEvent
All Implemented Interfaces:
Event

public class SleepStopEvent extends Object implements Event
Event that is fired when a player stops sleeping in a bed.
  • Constructor Details

    • SleepStopEvent

      public SleepStopEvent(net.minecraft.entity.LivingEntity entity, net.minecraft.util.math.BlockPos pos)
  • Method Details

    • getEntity

      public net.minecraft.entity.LivingEntity getEntity()
      Returns:
      the player that is trying to sleep
    • getPos

      public net.minecraft.util.math.BlockPos getPos()
      Returns:
      the position of the bed the player is trying to sleep in
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Event
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Event