Skip to content

Liquid Properties

misterplus edited this page Apr 3, 2020 · 4 revisions

Calling

You can call the Liquid package by mods.plustweaks.Liquid.

Usage

There is currently only one function for this package:

mods.plustweaks.Liquid.setInfinite(ILiquidStack liquidStack, @Optional boolean finite);

When finite is set to true, this will set the specified liquid finite, just like lava from vanilla minecraft. If finite is omited or set to false, this will set the specified liquid infinite, just like water from vanilla minecraft.

Example:

mods.plustweaks.Liquid.setInfinite(<liquid:water>, true);

This means infinite water is disabled.

Clone this wiki locally