public class PressureDisenchantingRecipe extends PressureChamberRecipeImpl
PressureChamberRecipeImpl.Serializer<T extends PressureChamberRecipe>PressureChamberRecipe.RecipeSlot, PressureChamberRecipe.SlotCyclePneumaticCraftRecipe.DummyIInventory| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.util.ResourceLocation |
ID |
| Constructor and Description |
|---|
PressureDisenchantingRecipe(net.minecraft.util.ResourceLocation id) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
craftRecipe(net.minecraftforge.items.IItemHandler chamberHandler,
java.util.List<java.lang.Integer> ingredientSlots,
boolean simulate)
This method is called when the Pressure Chamber is ready to craft with this recipe, and will only be called when
PressureChamberRecipe.findIngredients(IItemHandler) returns a non-empty list of slot numbers, i.e. |
java.util.Collection<java.lang.Integer> |
findIngredients(net.minecraftforge.items.IItemHandler chamberHandler)
When called (by the pressure chamber TE when it detects a change in the chamber contents), try to find the
ingredients for this recipe in the given item handler, which represents all of the items currently in the
pressure chamber.
|
java.util.List<net.minecraft.item.crafting.Ingredient> |
getInputsForDisplay()
Get the input items for this recipe.
|
java.util.List<java.util.List<net.minecraft.item.ItemStack>> |
getResultsForDisplay()
Get the output of this recipe, without crafting it.
|
net.minecraft.item.crafting.IRecipeSerializer<?> |
getSerializer() |
java.util.List<java.util.Set<PressureChamberRecipe.RecipeSlot>> |
getSyncGroupsForDisplay()
Get the slots that are synchronized with each other.
|
java.lang.String |
getTooltipKey(boolean input,
int slot)
Return a translation key for a supplementary tooltip to be displayed on the ingredient or resulting item.
|
boolean |
isValidInputItem(net.minecraft.item.ItemStack stack)
Check if the given item is a valid input item for this recipe.
|
void |
write(net.minecraft.network.PacketBuffer buffer)
Writes this recipe to a PacketBuffer.
|
getCraftingPressure, getCraftingPressureForDisplay, getGroup, getSingleResultsForDisplay, getToastSymbol, getTypegetCraftingPressure, getSyncForDisplayassemble, canCraftInDimensions, getId, getResultItem, isSpecial, matchespublic PressureDisenchantingRecipe(net.minecraft.util.ResourceLocation id)
public java.util.Collection<java.lang.Integer> findIngredients(@Nonnull
net.minecraftforge.items.IItemHandler chamberHandler)
PressureChamberRecipePressureChamberRecipe.getCraftingPressure(IItemHandler, List) and
PressureChamberRecipe.craftRecipe(IItemHandler, List, boolean) by the pressure chamber.
Do not cache this list across ticks, since the chamber contents are quite likely to change in the meantime.
findIngredients in class PressureChamberRecipeImplchamberHandler - what's currently in the pressure chamberpublic net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> craftRecipe(@Nonnull
net.minecraftforge.items.IItemHandler chamberHandler,
java.util.List<java.lang.Integer> ingredientSlots,
boolean simulate)
PressureChamberRecipePressureChamberRecipe.findIngredients(IItemHandler) returns a non-empty list of slot numbers, i.e. the necessary
items are definitely in the chamber.
The implementation is responsible for removing the items that have been used from the chamberHandler.
The implementation must also return the list of crafted items, for the Pressure Chamber to insert into its
output item handler.craftRecipe in class PressureChamberRecipeImplchamberHandler - items in the pressure chamber; should be modified to remove recipe input items.ingredientSlots - slots in the chamber handler where the ingredients can be found, as returned from PressureChamberRecipe.findIngredients(IItemHandler)simulate - pass on to uses of chamberHandlerpublic java.util.List<net.minecraft.item.crafting.Ingredient> getInputsForDisplay()
PressureChamberRecipegetInputsForDisplay in class PressureChamberRecipeImplpublic java.util.List<java.util.List<net.minecraft.item.ItemStack>> getResultsForDisplay()
PressureChamberRecipe
If overriding and no output slots display more than one stack then can override
PressureChamberRecipe.getSingleResultsForDisplay() instead.
getResultsForDisplay in class PressureChamberRecipepublic java.util.List<java.util.Set<PressureChamberRecipe.RecipeSlot>> getSyncGroupsForDisplay()
PressureChamberRecipe
A sync group (represented by a set of PressureChamberRecipe.RecipeSlots) will have all its member's cycles synchronized
should one of the members be the focus for a recipe lookup.
If you need more functionality, see PressureChamberRecipe.getSyncForDisplay(SlotCycle).
getSyncGroupsForDisplay in class PressureChamberRecipePressureChamberRecipe.RecipeSlotspublic boolean isValidInputItem(net.minecraft.item.ItemStack stack)
PressureChamberRecipeisValidInputItem in class PressureChamberRecipeImplstack - item stack to checkpublic java.lang.String getTooltipKey(boolean input,
int slot)
PressureChamberRecipegetTooltipKey in class PressureChamberRecipeinput - true if this is an input item, false if an output itemslot - the slot numberpublic void write(net.minecraft.network.PacketBuffer buffer)
PneumaticCraftRecipewrite in class PressureChamberRecipeImplbuffer - The buffer to write to.public net.minecraft.item.crafting.IRecipeSerializer<?> getSerializer()
getSerializer in interface net.minecraft.item.crafting.IRecipe<PneumaticCraftRecipe.DummyIInventory>getSerializer in class PressureChamberRecipeImpl