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

NSSResolver

This class was added by a mod with mod-id projecte. 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.projecte.NSSResolver;

Static Methods

Creates a NormalizedSimpleStack based on its string representation.

Returns: A NormalizedSimpleStack based on its string representation.
Return Type: NormalizedSimpleStack

script.zs
NSSResolver.deserialize(representation as string) as NormalizedSimpleStack
ParameterTypeDescription
Parameter
representation
Type
string
Description
String representation as would be found in custom_emc.json

Create a NormalizedSimpleStack representing a given MCFluid.

Returns: A NormalizedSimpleStack representing a given MCFluid.
Return Type: NormalizedSimpleStack

script.zs
NSSResolver.fromFluid(fluid as MCFluid) as NormalizedSimpleStack
ParameterTypeDescription
Parameter
fluid
Type
MCFluid
Description
Fluid to represent

Creates a NormalizedSimpleStack that matches the given stack’s fluid and NBT.

Returns: A NormalizedSimpleStack that matches the given stack’s fluid and NBT.
Return Type: NormalizedSimpleStack

script.zs
NSSResolver.fromFluid(stack as IFluidStack) as NormalizedSimpleStack
ParameterTypeDescription
Parameter
stack
Type
IFluidStack
Description
Stack to match the fluid and NBT of

Create a NormalizedSimpleStack representing a given MCTag.

Returns: A NormalizedSimpleStack representing a given MCTag.
Return Type: NormalizedSimpleStack

script.zs
NSSResolver.fromFluidTag(tag as MCTag<MCFluid>) as NormalizedSimpleStack
ParameterTypeDescription
Parameter
tag
Type
MCTag<MCFluid>
Description
Fluid Tag to represent

Create a NormalizedSimpleStack representing a given MCItemDefinition.

Returns: A NormalizedSimpleStack representing a given MCItemDefinition.
Return Type: NormalizedSimpleStack

script.zs
NSSResolver.fromItem(item as MCItemDefinition) as NormalizedSimpleStack
ParameterTypeDescription
Parameter
item
Type
MCItemDefinition
Description
Item to represent

Creates a NormalizedSimpleStack that matches the given stack’s item and NBT.

Returns: A NormalizedSimpleStack that matches the given stack’s item and NBT.
Return Type: NormalizedSimpleStack

script.zs
NSSResolver.fromItem(stack as IItemStack) as NormalizedSimpleStack
ParameterTypeDescription
Parameter
stack
Type
IItemStack
Description
Stack to match the item and NBT of

Create a NormalizedSimpleStack representing a given MCTag.

Returns: A NormalizedSimpleStack representing a given MCTag.
Return Type: NormalizedSimpleStack

script.zs
NSSResolver.fromItemTag(tag as MCTag<MCItemDefinition>) as NormalizedSimpleStack
ParameterTypeDescription
Parameter
tag
Type
MCTag<MCItemDefinition>
Description
Item Tag to represent