From 924e4acc25b71ad2ab5339bd7c062ed6f2031160 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 6 Nov 2021 20:44:33 +0800 Subject: 2.0.3 + Better module failed to load detection + Wither impact cooldown --- featureClass/class.js | 7 +++++++ featureClass/featureManager.js | 9 +++++++++ 2 files changed, 16 insertions(+) (limited to 'featureClass') diff --git a/featureClass/class.js b/featureClass/class.js index 1cfdd8b..11b3492 100644 --- a/featureClass/class.js +++ b/featureClass/class.js @@ -94,6 +94,13 @@ class Feature { return theEvent } + registerActionBar(criteria, func){ + let theEvent = this.FeatureManager.registerActionBar(criteria, func, this) + + this.customEvents[theEvent.id] = theEvent + + return theEvent + } registerStep(isFps, interval, func){ let theEvent = this.FeatureManager.registerStep(isFps, interval, func, this) diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js index 99f5483..d323397 100644 --- a/featureClass/featureManager.js +++ b/featureClass/featureManager.js @@ -224,6 +224,15 @@ class FeatureManager { return event } + + registerActionBar(criteria, func, context){ + + let event = this.registerCustom("actionBar", func, context) + + event.trigger.setChatCriteria(criteria) + + return event + } registerCommand(commandName, func, context){ let event = this.registerCustom("command", func, context) -- cgit