public abstract class HeatFrameCoolingRecipe extends PneumaticCraftRecipe
PneumaticCraftRecipe.DummyIInventory| Modifier | Constructor and Description |
|---|---|
protected |
HeatFrameCoolingRecipe(net.minecraft.util.ResourceLocation id) |
| Modifier and Type | Method and Description |
|---|---|
int |
calculateOutputQuantity(double temperature)
Calculate an output quantity based on the recipe's bonus settings and the current temperature of the heat frame.
|
abstract float |
getBonusLimit()
Get the bonus limit; a hard ceiling on the bonus output chance.
|
abstract float |
getBonusMultiplier()
Get the bonus output multiplier; for every degree below the threshold temperature, this raises the chance of
a bonus output by this amount.
|
abstract net.minecraft.item.crafting.Ingredient |
getInput()
Get the input ingredient.
|
abstract net.minecraft.item.ItemStack |
getOutput()
Get the output item.
|
abstract int |
getThresholdTemperature()
Get the threshold temperature (Kelvin) below which cooling occurs.
|
abstract boolean |
matches(net.minecraft.item.ItemStack stack)
Check if the given itemstack is valid for this recipe.
|
assemble, canCraftInDimensions, getId, getResultItem, isSpecial, matches, writeprotected HeatFrameCoolingRecipe(net.minecraft.util.ResourceLocation id)
public abstract net.minecraft.item.crafting.Ingredient getInput()
FluidIngredient) are
acceptable and will be matching by an item containing that fluid, and which provides an IFluidHandlerItem
capability.public abstract net.minecraft.item.ItemStack getOutput()
public abstract int getThresholdTemperature()
public abstract float getBonusMultiplier()
Note that the calculated bonus chance could be greater than 1; in that case there is a guaranteed second output plus a chance of a third, and so on.
public abstract float getBonusLimit()
public abstract boolean matches(net.minecraft.item.ItemStack stack)
stack - the itemstackpublic final int calculateOutputQuantity(double temperature)
temperature - heat frame's current temperature