PNC Heat element (PNC)
Add a Pneumaticcraft heat bar in the machine gui.
This gui element requires Custom Machinery Pneumaticcraft to be installed.
The heat gui element is used to display the content of a heat component present in the machine.
Heat elements are defined in json with : "type": "custommachinery:pnc_heat".
Note that if you didn't set a heat component in the machine json the heat element will still work but will always show a value of 0.
Properties
The heat element has 3 mandatory properties and 5 optional properties :
Mandatory properties
"type": "custommachinery:pnc_heat" //Mandatory to define a PNC heat element.Optional properties
Priority
Name : priority
priorityDescription :
An integer property that define the priority of the Element to be rendered.
Elements with higher priority will be rendered first. If 2 elements are at the same position the first to be rendered will be under and the last will be above.
Default : 0
Example :
The element will be rendered under each element that have a priority lower than 1000.
Tooltips
Name : tooltips
tooltipsDescription :
A list of Text components that will be shown as tooltips when the player mouse cursor hover the element.
Each tooltips of the list will be a new line.
Example :
Replace the default tooltips with a single line that say "Click me !" :
Example
A typical heat gui element :
Result :

Last updated