Contents
Class UpdateWorldSlumberSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.builtin.beds.sleep.systems.world.UpdateWorldSlumberSystem
- All Implemented Interfaces:
ISystem<EntityStore>, TickableSystem<EntityStore>
A ticking system that updates the world's slumber state and wakes up players when the slumber is over.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionUpdateWorldSlumberSystem(ComponentType<EntityStore, PlayerSomnolence> playerSomnolenceComponentType, ResourceType<EntityStore, WorldSomnolence> worldSomnolenceResourceType, ResourceType<EntityStore, WorldTimeResource> worldTimeResourceType, ComponentType<EntityStore, MountedComponent> mountedComponentType) -
Method Summary
Modifier and TypeMethodDescriptionvoidtick(float dt, int systemIndex, Store<EntityStore> store) Required reading:CommandBufferMethods 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
-
Constructor Details
-
UpdateWorldSlumberSystem
public UpdateWorldSlumberSystem(@Nonnull ComponentType<EntityStore, PlayerSomnolence> playerSomnolenceComponentType, @Nonnull ResourceType<EntityStore, WorldSomnolence> worldSomnolenceResourceType, @Nonnull ResourceType<EntityStore, WorldTimeResource> worldTimeResourceType, @Nonnull ComponentType<EntityStore, MountedComponent> mountedComponentType)
-
-
Method Details
-
tick
Description copied from class:TickingSystem- Specified by:
tickin interfaceTickableSystem<EntityStore>- Specified by:
tickin classTickingSystem<EntityStore>- Parameters:
dt- The delta time in seconds.systemIndex- The index of this system, used for faster lookups inStore.
-