-
Notifications
You must be signed in to change notification settings - Fork 12
KubeJS
Relentless edited this page Aug 11, 2023
·
3 revisions
The KubeJS integration provides utility functions for your scripts to easily make use of the unification process in your custom recipes.
Note: The unification runs before the recipes
event. Using the AlmostUnified
binding before the recipe event fires will throw an exception because the unification is not finished yet.
Function | Returns |
---|---|
AlmostUnified.getPreferredTagForItem(item) | Returns the preferred tag for the given item or null. |
AlmostUnified.getReplacementForItem(item) | Returns the item that was used to replace the given item. |
AlmostUnified.getPreferredItemForTag(tag) | Returns the dominant item for the given tag. |
AlmostUnified.getTags() | Returns a list of tags as strings. This does not return all existing tags! It will just return the list of tags which are used in the unification. |
AlmostUnified.getItemIds(tag) | Returns the list of all item ids as strings in the given tag. It will only accept tags from the config. |
AlmostUnified.getUnifyConfig() | Returns the unify config object. You can look at this class for available methods. |