public class HeatRegistrationEvent
extends net.minecraftforge.eventbus.api.Event
| Modifier and Type | Field and Description |
|---|---|
protected IHeatRegistry |
registry |
| Constructor and Description |
|---|
HeatRegistrationEvent(IHeatRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
registerBlockExchanger(net.minecraft.block.Block block,
double temperature,
double thermalResistance)
Register a block as a heat exchanger.
|
protected final IHeatRegistry registry
public HeatRegistrationEvent(IHeatRegistry registry)
public void registerBlockExchanger(net.minecraft.block.Block block,
double temperature,
double thermalResistance)
Note: the preferred way (and only way if you want blockstate transitions) to do this is with datapack recipes.
See data/pneumaticcraft/recipes/block_heat_properties/*.json
block - the blocktemperature - the block's temperaturethermalResistance - the thermal resistance, i.e. how quickly heat will be transferred