public class HeatPropertiesRecipeImpl extends HeatPropertiesRecipe
| Modifier and Type | Class and Description |
|---|---|
static class |
HeatPropertiesRecipeImpl.Serializer<T extends HeatPropertiesRecipe> |
PneumaticCraftRecipe.DummyIInventory| Constructor and Description |
|---|
HeatPropertiesRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.block.Block block,
net.minecraft.block.BlockState transformHot,
net.minecraft.block.BlockState transformHotFlowing,
net.minecraft.block.BlockState transformCold,
net.minecraft.block.BlockState transformColdFlowing,
int heatCapacity,
int temperature,
double thermalResistance,
java.util.Map<java.lang.String,java.lang.String> predicates,
java.lang.String descriptionKey) |
HeatPropertiesRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.block.Block block,
int temperature,
double thermalResistance) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.block.Block |
getBlock()
Get the block, which is effectively the input for this recipe
|
net.minecraft.block.BlockState |
getBlockState()
Get the blockstate for this entry.
|
java.util.Map<java.lang.String,java.lang.String> |
getBlockStatePredicates()
Get the blockstate predicates for this recipe.
|
java.lang.String |
getDescriptionKey()
Get a translation key for a player-friendly description of this recipe.
|
int |
getHeatCapacity()
Get the heat capacity for this block.
|
IHeatExchangerLogic |
getLogic()
Get a heat exchanger logic object for this recipe.
|
net.minecraft.item.crafting.IRecipeSerializer<?> |
getSerializer() |
int |
getTemperature()
The block's temperature.
|
double |
getThermalResistance()
The block's thermal resistance, which defines how quickly heat is added or lost.
|
net.minecraft.block.BlockState |
getTransformCold()
Get the blockstate which the input will transform to if too much heat is removed from it.
|
net.minecraft.block.BlockState |
getTransformColdFlowing()
Same as
HeatPropertiesRecipe.getTransformCold() but for flowing variants of the input block, when it is a fluid. |
net.minecraft.block.BlockState |
getTransformHot()
Get the blockstate which the input will transform to if too much heat is added to it.
|
net.minecraft.block.BlockState |
getTransformHotFlowing()
Same as
HeatPropertiesRecipe.getTransformHot() but for flowing variants of the input block, when it is a fluid. |
net.minecraft.item.crafting.IRecipeType<?> |
getType() |
boolean |
matchState(net.minecraft.block.BlockState state)
Check if this recipe's input matches the supplied blockstate.
|
void |
write(net.minecraft.network.PacketBuffer buffer)
Writes this recipe to a PacketBuffer.
|
getInputDisplayNameassemble, canCraftInDimensions, getId, getResultItem, isSpecial, matchespublic HeatPropertiesRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.block.Block block,
net.minecraft.block.BlockState transformHot,
net.minecraft.block.BlockState transformHotFlowing,
net.minecraft.block.BlockState transformCold,
net.minecraft.block.BlockState transformColdFlowing,
int heatCapacity,
int temperature,
double thermalResistance,
java.util.Map<java.lang.String,java.lang.String> predicates,
java.lang.String descriptionKey)
public HeatPropertiesRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.block.Block block,
int temperature,
double thermalResistance)
public int getHeatCapacity()
HeatPropertiesRecipegetHeatCapacity in class HeatPropertiesRecipepublic int getTemperature()
HeatPropertiesRecipegetTemperature in class HeatPropertiesRecipepublic double getThermalResistance()
HeatPropertiesRecipegetThermalResistance in class HeatPropertiesRecipepublic net.minecraft.block.Block getBlock()
HeatPropertiesRecipegetBlock in class HeatPropertiesRecipepublic net.minecraft.block.BlockState getBlockState()
HeatPropertiesRecipegetBlockState in class HeatPropertiesRecipepublic net.minecraft.block.BlockState getTransformHot()
HeatPropertiesRecipegetTransformHot in class HeatPropertiesRecipepublic net.minecraft.block.BlockState getTransformCold()
HeatPropertiesRecipegetTransformCold in class HeatPropertiesRecipepublic net.minecraft.block.BlockState getTransformHotFlowing()
HeatPropertiesRecipeHeatPropertiesRecipe.getTransformHot() but for flowing variants of the input block, when it is a fluid.getTransformHotFlowing in class HeatPropertiesRecipepublic net.minecraft.block.BlockState getTransformColdFlowing()
HeatPropertiesRecipeHeatPropertiesRecipe.getTransformCold() but for flowing variants of the input block, when it is a fluid.getTransformColdFlowing in class HeatPropertiesRecipepublic IHeatExchangerLogic getLogic()
HeatPropertiesRecipegetLogic in class HeatPropertiesRecipepublic void write(net.minecraft.network.PacketBuffer buffer)
PneumaticCraftRecipewrite in class PneumaticCraftRecipebuffer - The buffer to write to.public net.minecraft.item.crafting.IRecipeSerializer<?> getSerializer()
public net.minecraft.item.crafting.IRecipeType<?> getType()
public boolean matchState(net.minecraft.block.BlockState state)
HeatPropertiesRecipeHeatPropertiesRecipe.getBlockStatePredicates().matchState in class HeatPropertiesRecipestate - the blockstate to test againstpublic java.util.Map<java.lang.String,java.lang.String> getBlockStatePredicates()
HeatPropertiesRecipeHeatPropertiesRecipe.matchState(BlockState)
to succeed.
E.g. for a lit campfire, this map would be { "lit" = "true" }getBlockStatePredicates in class HeatPropertiesRecipepublic java.lang.String getDescriptionKey()
HeatPropertiesRecipeHeatPropertiesRecipe.getInputDisplayName().getDescriptionKey in class HeatPropertiesRecipe