HeatCell
Legacy test item. Stores heat energy. Has a limit of 400 kJ. It is a spawnable non-flammable solid.
Here is a list of possible sizes that reach the maximum malleability (8) that have integer components: 1x1x8, 1x2x4, 2x2x2
At its default size (2x2x2) it has a durability of 1, at its maximum size it has a durability of 2.
By default, its colour is #000000.
It requires 1 HeatPipe, 1 Sulfur, and 1 Water to be crafted.
Methods
GetResource() → resource
Gets the name of the resource contained, will return the string "nil" if nothing is stored, rather than actually returning nil.
The resource return can be any of the following types:
-
string -
"nil"
GetResourceAmount() → amount
Gives you the total amount of objects in the container.
The amount return is the amount of objects in the container. It is a number.
GetAmount() → amount
This method is deprecated. Use :GetResourceAmount() instead.
Gives you the total amount of objects in the container.
The amount return is the amount of objects in the container. It is a number.
Events
ContainerChanged(resourceType, resourceAmount)
Fires when the amount of the resource in the container changes.
The parameters for ContainerChanged are as follows:
- The resourceType parameter is a string that can be
Power,Solid, orFluid - The resourceAmount parameter is a
number.