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.
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
NSSResolver.deserialize(representation as string) as NormalizedSimpleStack
Parameter | Type | Description |
---|---|---|
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
NSSResolver.fromFluid(fluid as MCFluid) as NormalizedSimpleStack
Parameter | Type | Description |
---|---|---|
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
NSSResolver.fromFluid(stack as IFluidStack) as NormalizedSimpleStack
Parameter | Type | Description |
---|---|---|
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
NSSResolver.fromFluidTag(tag as MCTag<MCFluid>) as NormalizedSimpleStack
Parameter | Type | Description |
---|---|---|
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
NSSResolver.fromItem(item as MCItemDefinition) as NormalizedSimpleStack
Parameter | Type | Description |
---|---|---|
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
NSSResolver.fromItem(stack as IItemStack) as NormalizedSimpleStack
Parameter | Type | Description |
---|---|---|
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
NSSResolver.fromItemTag(tag as MCTag<MCItemDefinition>) as NormalizedSimpleStack
Parameter | Type | Description |
---|---|---|
Parameter tag | Type MCTag<MCItemDefinition> | Description Item Tag to represent |