public class SleepFinishedTimeEvent extends WorldEvent
WorldEvent.CreateSpawnPosition, WorldEvent.Load, WorldEvent.PotentialSpawns, WorldEvent.Save, WorldEvent.Unload
Modifier and Type | Field and Description |
---|---|
private long |
minTime |
private long |
newTime |
Constructor and Description |
---|
SleepFinishedTimeEvent(ServerWorld worldIn,
long newTimeIn,
long minTimeIn) |
Modifier and Type | Method and Description |
---|---|
long |
getNewTime() |
boolean |
setTimeAddition(long newTimeIn)
Sets the new time which should be set when all players wake up
|
getWorld
public SleepFinishedTimeEvent(ServerWorld worldIn, long newTimeIn, long minTimeIn)
public long getNewTime()
public boolean setTimeAddition(long newTimeIn)
newTimeIn
- The new time at wakeupfalse
if newTimeIn was lower than current time