Fluid
Link to fluid
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 Copyimport crafttweaker.api.fluid.Fluid;
Metodi
Link to metodi
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: isSame
Return Type: boolean
ZenScript CopyFluid.isSame(other as Fluid) as boolean
Parametro | Tipo |
---|---|
Parametro other | Tipo Fluid |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome bucket | Tipo ItemDefinition | Ha Getter sì | Ha Setter no |
Nome commandString | Tipo string | Ha Getter sì | Ha Setter no |
Nome registryName | Tipo ResourceLocation | Ha Getter sì | Ha Setter no |