public class HeatFrameCoolingRecipeImpl extends HeatFrameCoolingRecipe
| Modifier and Type | Class and Description |
|---|---|
static class |
HeatFrameCoolingRecipeImpl.Serializer<T extends HeatFrameCoolingRecipe> |
PneumaticCraftRecipe.DummyIInventory| Modifier and Type | Field and Description |
|---|---|
net.minecraft.item.crafting.Ingredient |
input |
net.minecraft.item.ItemStack |
output |
| Constructor and Description |
|---|
HeatFrameCoolingRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.item.crafting.Ingredient input,
int temperature,
net.minecraft.item.ItemStack output) |
HeatFrameCoolingRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.item.crafting.Ingredient input,
int temperature,
net.minecraft.item.ItemStack output,
float bonusMultiplier,
float bonusLimit) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends net.minecraft.item.crafting.IRecipe<?>> |
cacheMaxThresholdTemp(java.util.Collection<T> recipes) |
float |
getBonusLimit()
Get the bonus limit; a hard ceiling on the bonus output chance.
|
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.
|
net.minecraft.item.crafting.Ingredient |
getInput()
Get the input ingredient.
|
static int |
getMaxThresholdTemp(net.minecraft.world.World world) |
net.minecraft.item.ItemStack |
getOutput()
Get the output item.
|
net.minecraft.item.crafting.IRecipeSerializer<?> |
getSerializer() |
int |
getThresholdTemperature()
Get the threshold temperature (Kelvin) below which cooling occurs.
|
net.minecraft.item.crafting.IRecipeType<?> |
getType() |
boolean |
matches(net.minecraft.item.ItemStack stack)
Check if the given itemstack is valid for this recipe.
|
void |
write(net.minecraft.network.PacketBuffer buffer)
Writes this recipe to a PacketBuffer.
|
calculateOutputQuantityassemble, canCraftInDimensions, getId, getResultItem, isSpecial, matchespublic final net.minecraft.item.crafting.Ingredient input
public final net.minecraft.item.ItemStack output
public HeatFrameCoolingRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.item.crafting.Ingredient input,
int temperature,
net.minecraft.item.ItemStack output)
public HeatFrameCoolingRecipeImpl(net.minecraft.util.ResourceLocation id,
net.minecraft.item.crafting.Ingredient input,
int temperature,
net.minecraft.item.ItemStack output,
float bonusMultiplier,
float bonusLimit)
public net.minecraft.item.crafting.Ingredient getInput()
HeatFrameCoolingRecipeFluidIngredient) are
acceptable and will be matching by an item containing that fluid, and which provides an IFluidHandlerItem
capability.getInput in class HeatFrameCoolingRecipepublic net.minecraft.item.ItemStack getOutput()
HeatFrameCoolingRecipegetOutput in class HeatFrameCoolingRecipepublic int getThresholdTemperature()
HeatFrameCoolingRecipegetThresholdTemperature in class HeatFrameCoolingRecipepublic float getBonusMultiplier()
HeatFrameCoolingRecipeNote 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.
getBonusMultiplier in class HeatFrameCoolingRecipepublic float getBonusLimit()
HeatFrameCoolingRecipegetBonusLimit in class HeatFrameCoolingRecipepublic boolean matches(net.minecraft.item.ItemStack stack)
HeatFrameCoolingRecipematches in class HeatFrameCoolingRecipestack - the itemstackpublic 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 static <T extends net.minecraft.item.crafting.IRecipe<?>> void cacheMaxThresholdTemp(java.util.Collection<T> recipes)
public static int getMaxThresholdTemp(net.minecraft.world.World world)