Importare la Classe

Link to importare-la-classe

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.

ZenScript
Copy
import crafttweaker.api.fluid.Fluid;

Name: getBucket

Return Type: ItemDefinition

ZenScript
Copy
// Fluid.getBucket() as ItemDefinition

myFluid.getBucket();

Name: getRegistryName

Return Type: ResourceLocation

ZenScript
Copy
// Fluid.getRegistryName() as ResourceLocation

myFluid.getRegistryName();

Name: isIn

Return Type: boolean

ZenScript
Copy
Fluid.isIn(tag as KnownTag<Fluid>) as boolean
ParametroTipo
Parametro
tag
Tipo
KnownTag<Fluid>

Name: isSame

Return Type: boolean

ZenScript
Copy
Fluid.isSame(other as Fluid) as boolean
ParametroTipo
Parametro
other
Tipo
Fluid
NomeTipoHa GetterHa Setter
Nome
bucket
Tipo
ItemDefinition
Ha Getter
Ha Setter
no
Nome
commandString
Tipo
string
Ha Getter
Ha Setter
no
Nome
registryName
Tipo
ResourceLocation
Ha Getter
Ha Setter
no