Class StartSlumberSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.component.system.DelayedSystem<EntityStore>
com.hypixel.hytale.builtin.beds.sleep.systems.world.StartSlumberSystem
- All Implemented Interfaces:
ISystem<EntityStore>,TickableSystem<EntityStore>
-
Field Summary
FieldsFields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate static floatcomputeIrlSeconds(Instant startInstant, Instant targetInstant) private InstantcomputeWakeupInstant(Instant now, float wakeUpHour) voiddelayedTick(float dt, int systemIndex, Store<EntityStore> store) private booleanstatic booleanisReadyToSleep(ComponentAccessor<EntityStore> store, Ref<EntityStore> ref) Methods inherited from class com.hypixel.hytale.component.system.DelayedSystem
getIntervalSec, getResourceType, tickMethods inherited from class com.hypixel.hytale.component.system.System
getComponentRegistrations, getResourceRegistrations, registerComponent, registerComponent, registerComponent, registerResource, registerResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.system.ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregistered
-
Field Details
-
NODDING_OFF_DURATION
-
WAKE_UP_AUTOSLEEP_DELAY
-
-
Constructor Details
-
StartSlumberSystem
public StartSlumberSystem()
-
-
Method Details
-
delayedTick
- Specified by:
delayedTickin classDelayedSystem<EntityStore>
-
checkIfEveryoneIsReadyToSleep
-
computeWakeupInstant
-
computeIrlSeconds
-
isEveryoneReadyToSleep
-
isReadyToSleep
-