FluidBuilder

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

ZenScript
Copy
import mods.contenttweaker.fluid.FluidBuilder;

Implemented Interfaces

FluidBuilder implements the following interfaces. That means all methods defined in these interfaces are also available in FluidBuilder

Constructors

Creates a new FluidBuilder with default colorized textures

ZenScript
Copy
new FluidBuilder(isMolten as boolean, color as int) as FluidBuilder
ParameterTypeDescription
isMoltenbooleanif the fluid is molten
colorintthe color of the fluid

Creates a new FluidBuilder with two textures

ZenScript
Copy
new FluidBuilder(isMolten as boolean, color as int, stillTexture as MCResourceLocation, flowTexture as MCResourceLocation) as FluidBuilder
ParameterTypeDescription
isMoltenbooleanif the fluid is molten
colorintthe bucket fluid color
stillTextureMCResourceLocationthe texture resource location of still fluid block
flowTextureMCResourceLocationthe texture resource location of flowing fluid block

Methods

build

Instructs CoT to actually build whatever this builder is supposed to be building.

Return Type: void

ZenScript
Copy
// FluidBuilder.build(resourceLocation as string) as void

myFluidBuilder.build("my_awesome_block");
ParameterTypeDescription
resourceLocationstringThe resource path to give this block
density

How fast you can walk in the fluid?

default value is 1000

Return Type: FluidBuilder

ZenScript
Copy
FluidBuilder.density(density as int) as FluidBuilder
ParameterTypeDescription
densityintNo Description Provided
gaseous

Is the fluid gaseous (flows upwards instead of downwards)?

Return Type: FluidBuilder

ZenScript
Copy
// FluidBuilder.gaseous() as FluidBuilder

myFluidBuilder.gaseous();
luminosity

The light-level emitted by the fluid

default value is 0

Return Type: FluidBuilder

ZenScript
Copy
FluidBuilder.luminosity(luminosity as int) as FluidBuilder
ParameterTypeDescription
luminosityintNo Description Provided
temperature

The Fluid's temperature

default value is 300

Return Type: FluidBuilder

ZenScript
Copy
FluidBuilder.temperature(temperature as int) as FluidBuilder
ParameterTypeDescription
temperatureintNo Description Provided
viscosity

How quickly the fluid spreads

default value is 1000

Return Type: FluidBuilder

ZenScript
Copy
FluidBuilder.viscosity(viscosity as int) as FluidBuilder
ParameterTypeDescription
viscosityintNo Description Provided