Class ARecipeTypeMapper<R extends net.minecraft.world.item.crafting.Recipe<?>>

java.lang.Object
com.tagnumelite.projecteintegration.api.recipe.ABaseRecipeMapper<R>
com.tagnumelite.projecteintegration.api.recipe.ARecipeTypeMapper<R>
All Implemented Interfaces:
IRecipeMapper<R>, moze_intel.projecte.api.config.IConfigurableElement, moze_intel.projecte.api.mapper.recipe.IRecipeTypeMapper
Direct Known Subclasses:
AppliedEnergisticsAddon.AEChargerMapper, AppliedEnergisticsAddon.AEInscriberMapper, AppliedEnergisticsAddon.AETransformMapper, ArsNouveauAddon.ANCrushMapper, ArsNouveauAddon.ANEnchantingApparatusMapper, ArsNouveauAddon.ANGlyphMapper, ArsNouveauAddon.ANImbuementMapper, ChippedAddon.ChippedWorkbenchMapper, CorailWoodcutterAddon.CWWoodcuttingMapper, CreateAddon.CreateMechanicalCraftingMapper, CreateAddon.CreateProcessingRecipeMapper, CreateAddon.CreateSequencedAssemblyMapper, EvilCraftAddon.ECBloodInfuserMapper, EvilCraftAddon.ECEnvironmentalAccumulatorMapper, ExtendedCraftingAddon.ECCombinationMapper, ExtendedCraftingAddon.ECCompressorMapper, ExtendedCraftingAddon.ECEnderCrafterMapper, ExtendedCraftingAddon.ECFluxCrafterMapper, ExtendedCraftingAddon.ECTableMapper, FarmersDelightAddon.FDCookingPotMapper, FarmersDelightAddon.FDCuttingBoardMapper, FarmingForBlockheadsAddon.FFBMarketMapper, ImmersiveEngineeringAddon.IEAlloyMapper, ImmersiveEngineeringAddon.IEBlastFurnaceMapper, ImmersiveEngineeringAddon.IEClocheMapper, ImmersiveEngineeringAddon.IECokeOvenMapper, ImmersiveEngineeringAddon.IEFermenterMapper, ImmersiveEngineeringAddon.IEMetalPressMapper, ImmersiveEngineeringAddon.IEMultiblockRecipeMapper, IndustrialForegoingAddon.IFCrusherMapper, IndustrialForegoingAddon.IFDissolutionChamberMapper, IndustrialForegoingAddon.IFStoneWorkGenerateMapper, MysticalAgricultureAddon.MAAwakeningMapper, MysticalAgricultureAddon.MAInfusionMapper, MysticalAgricultureAddon.MAReprocessorMapper, NaturesAuraAddon.NAAltarMapper, NaturesAuraAddon.NAOfferingMapper, NaturesAuraAddon.NATreeRitualMapper, OccultismAddon.OccultismCrushingMapper, OccultismAddon.OccultismRitualMapper, OccultismAddon.OccultismSpiritFireMapper, OccultismAddon.OccultismSpiritTradeMapper, PneumaticCraftAddon.PCRAmadronRecipeMapper, PneumaticCraftAddon.PCRAssemblyMapper, PneumaticCraftAddon.PCRExplosionCraftingMapper, PneumaticCraftAddon.PCRFluidMixerMapper, PneumaticCraftAddon.PCRHeatFrameCoolingMapper, PneumaticCraftAddon.PCRPressureChamberMapper, PneumaticCraftAddon.PCRRefineryMapper, PneumaticCraftAddon.PCRThermoPlantMapper, TouhouLittleMaidAddon.TLMAltarMapper

public abstract class ARecipeTypeMapper<R extends net.minecraft.world.item.crafting.Recipe<?>> extends ABaseRecipeMapper<R> implements moze_intel.projecte.api.mapper.recipe.IRecipeTypeMapper
An abstract class used for converting Recipes to EMC conversion maps.

This function has a few helper variables: ABaseRecipeMapper.recipeID, ABaseRecipeMapper.mapper and ABaseRecipeMapper.fakeGroupManager

This class follows closely to BaseRecipeTypeMapper with added function for special recipes with ItemStack and/or FluidStack outputs.

To overwrite output, override method getOutput(Recipe) to overwrite input, override method getIngredients(Recipe)

  • Constructor Details

    • ARecipeTypeMapper

      public ARecipeTypeMapper()
  • Method Details

    • handleRecipe

      public final boolean handleRecipe(moze_intel.projecte.api.mapper.collector.IMappingCollector<moze_intel.projecte.api.nss.NormalizedSimpleStack,Long> mapper, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder, net.minecraft.core.RegistryAccess registryAccess, moze_intel.projecte.api.mapper.recipe.INSSFakeGroupManager fakeGroupManager)
      Specified by:
      handleRecipe in interface moze_intel.projecte.api.mapper.recipe.IRecipeTypeMapper
    • getOutput

      public NSSOutput getOutput(R recipe)
      Specified by:
      getOutput in interface IRecipeMapper<R extends net.minecraft.world.item.crafting.Recipe<?>>
      Parameters:
      recipe -
      Returns:
    • getIngredients

      protected List<net.minecraft.world.item.crafting.Ingredient> getIngredients(R recipe)
      Parameters:
      recipe -
      Returns:
    • getInput

      public NSSInput getInput(R recipe)
      Specified by:
      getInput in interface IRecipeMapper<R extends net.minecraft.world.item.crafting.Recipe<?>>
      Parameters:
      recipe -
      Returns:
    • getRequiredMods

      public String[] getRequiredMods()
      Returns a list of required mods from the RecipeTypeMapper annotation
      Specified by:
      getRequiredMods in class ABaseRecipeMapper<R extends net.minecraft.world.item.crafting.Recipe<?>>
      Returns:
      A list of modids or null.
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface moze_intel.projecte.api.config.IConfigurableElement