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)
-
Field Summary
Fields inherited from class com.tagnumelite.projecteintegration.api.recipe.ABaseRecipeMapper
fakeGroupManager, mapper, recipeID, registryAccess -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<net.minecraft.world.item.crafting.Ingredient> getIngredients(R recipe) String[]Returns a list of required mods from theRecipeTypeMapperannotationfinal booleanhandleRecipe(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) Methods inherited from class com.tagnumelite.projecteintegration.api.recipe.ABaseRecipeMapper
addConversionsAndReturn, addIngredient, convertFluidIngredient, convertFluidIngredient, convertFluidIngredient, convertFluidIngredients, convertIngredient, convertIngredient, convertItemStack, convertRecipe, convertSingleFluidStack, convertSingleIngredient, convertSingleIngredient, convertSingleItemStack, getDescription, getFakeGroup, getOutputBuilder, mapOutput, mapOutputsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface moze_intel.projecte.api.config.IConfigurableElement
addConfigOptions, getConfigPath, getDescription, getNameMethods inherited from interface com.tagnumelite.projecteintegration.api.recipe.IRecipeMapper
getNameMethods inherited from interface moze_intel.projecte.api.mapper.recipe.IRecipeTypeMapper
canHandle, isAvailable
-
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:
handleRecipein interfacemoze_intel.projecte.api.mapper.recipe.IRecipeTypeMapper
-
getOutput
- Specified by:
getOutputin interfaceIRecipeMapper<R extends net.minecraft.world.item.crafting.Recipe<?>>- Parameters:
recipe-- Returns:
-
getIngredients
- Parameters:
recipe-- Returns:
-
getInput
- Specified by:
getInputin interfaceIRecipeMapper<R extends net.minecraft.world.item.crafting.Recipe<?>>- Parameters:
recipe-- Returns:
-
getRequiredMods
Returns a list of required mods from theRecipeTypeMapperannotation- Specified by:
getRequiredModsin classABaseRecipeMapper<R extends net.minecraft.world.item.crafting.Recipe<?>>- Returns:
- A list of modids or null.
-
getTranslationKey
- Specified by:
getTranslationKeyin interfacemoze_intel.projecte.api.config.IConfigurableElement
-