Skip to content

Conversation

DevNatan
Copy link
Owner

@DevNatan DevNatan commented Apr 27, 2025

A new state that holds a timer value. Previously the only way to "use time" in IF views was through scheduleUpdate that calls view's update() automatically at a fixed interval specified by the developer, the developer itself didn't have any control over it.

The purpose of that timer state is to give developer control of anything related to time in Inventory Framework views like to upcoming Timeable out item render and allow them to pause; change interval without opening a new inventory; create multiple timers for multiple things; call another context methods not only update() like chain a Ref to a Component and update it programatically and so on.

And... To decouple timer schedule code a little bit more to be able to support Folia schedulers more easily and make Inventory Framework Folia compatible.

I will rewrite State Management on Wiki entirely before merging this PR.

#339

@DevNatan DevNatan self-assigned this Apr 27, 2025
@typicalsmc
Copy link

https://github.com/TechnicallyCoded/FoliaLib can we use FoliaLib for the simplicity of supporting both regular paper and folia at once? i think it could be a drop in easily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants