CAP - the interface object for the other mod's heat capability objectpublic abstract static class IHeatExchangerAdapter.Simple<CAP> extends java.lang.Object implements IHeatExchangerAdapter
IHeatExchangerAdapter.Simple<CAP>| Modifier and Type | Field and Description |
|---|---|
protected double |
ambientTemperature |
protected net.minecraftforge.common.util.LazyOptional<CAP> |
foreignHeatCap |
protected net.minecraft.util.Direction |
side |
ALL_BLOCKS| Constructor and Description |
|---|
Simple(net.minecraft.util.Direction side,
net.minecraftforge.common.util.LazyOptional<CAP> foreignHeatCap,
double ambientTemperature) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAmbientTemperature()
Get the heat exchanger's ambient temperature, i.e.
|
boolean |
isSideConnected(net.minecraft.util.Direction side)
Check if this side of the heat exchanger has a thermal connection of any kind to the neighbouring block in the
given direction; whether to another heat exchanger, a static heat source like air, or a custom handler such as
a furnace or heat frame.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTemperatureAsInt, initializeAmbientTemperature, initializeAsHull, setTemperature, setThermalCapacity, setThermalResistance, tickaddConnectedExchanger, addConnectedExchanger, addHeat, deserializeNBT, getHeatBehaviour, getTemperature, getThermalCapacity, getThermalResistance, removeConnectedExchanger, removeConnectedExchanger, serializeNBTprotected final net.minecraft.util.Direction side
protected final net.minecraftforge.common.util.LazyOptional<CAP> foreignHeatCap
protected final double ambientTemperature
public Simple(net.minecraft.util.Direction side,
net.minecraftforge.common.util.LazyOptional<CAP> foreignHeatCap,
double ambientTemperature)
public double getAmbientTemperature()
IHeatExchangerLogicgetAmbientTemperature in interface IHeatExchangerLogicpublic boolean isSideConnected(net.minecraft.util.Direction side)
IHeatExchangerLogicIHeatExchangerLogic.initializeAsHull(World, BlockPos, BiPredicate, Direction...).isSideConnected in interface IHeatExchangerLogicside - the side to check