-
Notifications
You must be signed in to change notification settings - Fork 10
CustomTaskEvent
youyihj edited this page Jan 18, 2021
·
8 revisions
The event is used to define the checker and other logic of custom tasks.
It might be required to import the class to avoid errors.
import mods.zenutils.ftbq.CustomTaskEvent;
ChapterCompletedEvent extends IEventCancelable. That means all Methods and ZenGetters that are available for IEventCancelable are also available for ChapterCompletedEvent!
ZenGetter | ZenSetter | Type | Description |
---|---|---|---|
task | Task | ||
checker | ITaskChecker | ||
checkTimer | checkTimer | int | how many ticks is the checker function is called |
maxProgress | maxProgress | int | Max progress of this task |
enableButton | enableButton | bool | Enable checking on button click |
mods.zenutils.ftbq.ITaskChecker
This is a function with the following parameters (in this order).
- IPlayer player
- int currentProgress -> the current progress of the task
the function needs return a int representing the new progress of the task. If the new progress is equal to or bigger than maxProgress of task, the task is complete.
- GlobalFunctions
- ScriptReloading
- SuppressErrorPreprocessor
- HardFailPreprocessor
- OrderlyMap
- IData Deep Update
- Template String
- Native Method Access
- Mixin
- CrTI18n
- CrTUUID
- CrTItemHandler
- CrTLiquidHandler
- ILiquidTankProperties
- StringList
- HexHelper
- StaticString
- Catenation
- PersistedCatenation
- PlayerStat
- IStatFormatter
- GameRuleHelper
- ZenCommand
- ZenCommandTree
- ZenUtilsCommandSender
- IGetCommandUsage
- ICommandExecute
- IGetTabCompletion
- CommandUtils