Contents
Class SleepNotificationSystem
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.player.SleepNotificationSystem
- All Implemented Interfaces:
ISystem<EntityStore>, TickableSystem<EntityStore>
-
Field Summary
FieldsFields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelayedTick(float dt, int systemIndex, Store<EntityStore> store) A tick method called once every interval provided by the constructorDelayedSystem(float).static MessagegetSleeperName(Ref<EntityStore> ref) static voidmaybeDoNotification(Store<EntityStore> store, boolean fromAutoLoop) Methods inherited from class DelayedSystem
getIntervalSec, getResourceType, tickMethods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregistered
-
Field Details
-
SMALL_SERVER_PLAYER_COUNT
public static final int SMALL_SERVER_PLAYER_COUNT- See Also:
-
BIG_SERVER_SLEEPERS_RATIO
public static final double BIG_SERVER_SLEEPERS_RATIO- See Also:
-
COLOR
- See Also:
-
-
Constructor Details
-
SleepNotificationSystem
public SleepNotificationSystem()
-
-
Method Details
-
delayedTick
Description copied from class:DelayedSystemA tick method called once every interval provided by the constructorDelayedSystem(float).- Specified by:
delayedTickin classDelayedSystem<EntityStore>- Parameters:
dt- The delta time in seconds since the last call to this method.systemIndex- The index of this system, used for faster lookups inStore.store- The store calling this method.
-
maybeDoNotification
-
getSleeperName
-