Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes

SlurryTagManager

This class was added by a mod with mod-id mekanism. So you need to have this mod installed if you want to use this feature.

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import mods.mekanism.api.tag.SlurryTagManager;

Extending ChemicalTagManager<Slurry>

SlurryTagManager extends ChemicalTagManager <Slurry>. That means all methods available in ChemicalTagManager <Slurry> are also available in SlurryTagManager

Methods

Return Type: boolean

script.zs
SlurryTagManager.exists(location as MCResourceLocation) as boolean
ParameterTypeDescription
Parameter
location
Type
MCResourceLocation
Description
No Description Provided

Return Type: boolean

script.zs
SlurryTagManager.exists(name as string) as boolean
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided

Return Type: stdlib.List<MCTag<T>>

script.zs
// SlurryTagManager.getAllTags() as stdlib.List<MCTag<T>>
mySlurryTagManager.getAllTags();

Return Type: stdlib.List<MCTag<T>>

script.zs
SlurryTagManager.getAllTagsFor(element as T) as stdlib.List<MCTag<T>>
ParameterTypeDescription
Parameter
element
Type
T
Description
No Description Provided

Return Type: MCTag<T>

script.zs
SlurryTagManager.getTag(location as MCResourceLocation) as MCTag<T>
ParameterTypeDescription
Parameter
location
Type
MCResourceLocation
Description
No Description Provided

Return Type: MCTag<T>

script.zs
SlurryTagManager.getTag(name as string) as MCTag<T>
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided

Operators

script.zs
name as string in mySlurryTagManager

Properties

NameTypeHas GetterHas SetterDescription
Name
all
Type
stdlib.List<MCTag<T>>
Has Getter
true
Has Setter
false
Description
No Description Provided