Home Getting Started With Scripts Commands Examples
BracketDumpers BracketHandlers BracketValidators

Fluid

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 crafttweaker.api.fluid.Fluid;

Methods

Return Type: ItemDefinition

script.zs
// Fluid.getBucket() as ItemDefinition
myFluid.getBucket();

Return Type: boolean

script.zs
Fluid.isIn(tag as MCTag<Fluid>) as boolean
ParameterTypeDescription
Parameter
tag
Type
MCTag<Fluid>
Description
No Description Provided

Return Type: boolean

script.zs
Fluid.isSame(other as Fluid) as boolean
ParameterTypeDescription
Parameter
other
Type
Fluid
Description
No Description Provided

Properties

NameTypeHas GetterHas SetterDescription
Name
bucket
Type
ItemDefinition
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
commandString
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided