-
Notifications
You must be signed in to change notification settings - Fork 12
Evaluation Utils
The evaluation utils are a relatively new addition to WolfyUtils. They allow you to specify an evaluation context, which can then be used to evalute it using JSON specified operators and value providers.
The evaluation context contains all the possible variables and other references, that can be used by the value providers and operators.
For example, the EvalContextPlayer contains the player that belongs to the context and can be used in value providers that require a player like the ValueProviderPAPI.
The Operators compare two values and return another value. At the moment, there are only operators that extend the BoolOperator, and return a boolean value.
They are separated into two groups. Comparison and Logical Operators.
Those operators compare two values and return a boolean value. Both values must be of the same type!
- wolfyutilities:equal
- wolfyutilities:greater
- wolfyutilities:greater_equal
- wolfyutilities:less
- wolfyutilities:less_equal
- wolfyutilities:not_equal
These operators take in one or more boolean values and return another boolean value.
- wolfyutilities:and
- wolfyutilities:not
- wolfyutilities:or
Value providers provide specific values, that can be specified via JSON.
//TODO
| Home
| Registry
-
Introduction
- Structure
- InventoryAPI
- Register GuiCluster
- CustomCache
- GuiClusters
- GuiWindow
-
Buttons
- Dummy
- Action
- Toggle
- ChatInput
- MultipleChoice
-
ButtonStates
- ButtonFunctions
- ButtonAction
- ButtonPostAction
- ButtonPreRender
- ButtonRender
- ButtonFunctions