Package de.ellpeck.actuallyadditions.api
Class ActuallyAdditionsAPI
java.lang.Object
de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<IBookletChapter> static final Stringstatic final Stringstatic final List<IBookletEntry> static final List<IBookletPage> static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.CoffeeIngredientRecipe>> static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.ColorChangeRecipe>> static ILaserRelayConnectionHandlerUse this to add, remove or get Laser Relay Connections and Networks The network system is built in a way that doesn't need the individual positions to be Laser Relays, it relies only on BlockPos DO NOT CHANGE/OVERRIDE THIS!! This is getting initialized in Actually Additions' PreInit phasestatic final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.LaserRecipe>> static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.CrushingRecipe>> static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.EmpowererRecipe>> static IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic IBookletEntrystatic final List<IFarmerBehavior> Farmer behaviors are sorted when first accessed, this will not be done until after loading, but do not add behaviors at runtime.static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.FermentingRecipe>> static final Lensstatic final Lensstatic final LensConversionstatic final Lensstatic final Lensstatic final Lensstatic final Lensstatic final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.LiquidFuelRecipe>> static IMethodHandlerUse this to handle things that aren't based in the API itself DO NOT CHANGE/OVERRIDE THIS!! This is getting initialized in Actually Additions' PreInit phasestatic final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.MiningLensRecipe>> static final Stringstatic final List<WeightedOre> Deprecated.static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.PressingRecipe>> static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.SolidFuelRecipe>> static final List<WeightedOre> Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBookletEntry(IBookletEntry entry) Adds a booklet entry to the list of entriesstatic voidaddCoffeeMachineIngredient(CoffeeIngredient ingredient) Adds an ingredient to the Coffee Machine ingredient liststatic voidaddCrusherRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack outputOne, net.minecraft.world.item.ItemStack outputTwo, int outputTwoChance) Adds a Recipe to the Crusher Recipe Registrystatic voidaddCrusherRecipe(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack outputOne, net.minecraft.world.item.ItemStack outputTwo, int outputTwoChance) Adds a Recipe to the Crusher Recipe Registrystatic booleanaddCrusherRecipes(List<net.minecraft.world.item.ItemStack> inputs, List<net.minecraft.world.item.ItemStack> outputOnes, int outputOneAmounts, List<net.minecraft.world.item.ItemStack> outputTwos, int outputTwoAmounts, int outputTwoChance) Adds multiple Recipes to the Crusher Recipe Registry Use this if you want to add OreDictionary recipes easierstatic booleanaddCrusherRecipes(List<net.minecraft.world.item.ItemStack> inputs, net.minecraft.world.item.ItemStack outputOne, int outputOneAmount, net.minecraft.world.item.ItemStack outputTwo, int outputTwoAmount, int outputTwoChance) Deprecated.static voidaddEmpowererRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output, net.minecraft.world.item.crafting.Ingredient modifier1, net.minecraft.world.item.crafting.Ingredient modifier2, net.minecraft.world.item.crafting.Ingredient modifier3, net.minecraft.world.item.crafting.Ingredient modifier4, int energyPerStand, int time, int particleColor) static voidaddFarmerBehavior(IFarmerBehavior behavior) Adds a new farmer behavior to the Farmerstatic voidaddMiningLensNetherOre(String oreName, int weight) Adds an ore with a specific weight to the list of ores that the lens of the miner will generate inside of netherrack.static voidaddMiningLensStoneOre(String oreName, int weight) Adds an ore with a specific weight to the list of ores that the lens of the miner will generate inside of stone.static voidaddReconstructorLensConversionRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output, int energyUse) static voidaddReconstructorLensConversionRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output, int energyUse, LensConversion type) Adds a recipe to the Atomic Reconstructor conversion lenses StackSizes can only be 1 and greater ones will be ignoredstatic voidaddReconstructorLensConversionRecipe(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack output, int energyUse) Deprecated.static voidaddReconstructorLensConversionRecipe(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack output, int energyUse, LensConversion type) Deprecated.
-
Field Details
-
MOD_ID
- See Also:
-
API_ID
- See Also:
-
API_VERSION
- See Also:
-
CRUSHER_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.CrushingRecipe>> CRUSHER_RECIPES -
EMPOWERER_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.EmpowererRecipe>> EMPOWERER_RECIPES -
COLOR_CHANGE_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.ColorChangeRecipe>> COLOR_CHANGE_RECIPES -
SOLID_FUEL_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.SolidFuelRecipe>> SOLID_FUEL_RECIPES -
LIQUID_FUEL_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.LiquidFuelRecipe>> LIQUID_FUEL_RECIPES -
PRESSING_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.PressingRecipe>> PRESSING_RECIPES -
FERMENTING_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.FermentingRecipe>> FERMENTING_RECIPES -
CONVERSION_LASER_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.LaserRecipe>> CONVERSION_LASER_RECIPES -
MINING_LENS_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.MiningLensRecipe>> MINING_LENS_RECIPES -
FARMER_BEHAVIORS
Farmer behaviors are sorted when first accessed, this will not be done until after loading, but do not add behaviors at runtime. -
COFFEE_MACHINE_INGREDIENTS
public static final List<net.minecraft.world.item.crafting.RecipeHolder<de.ellpeck.actuallyadditions.mod.crafting.CoffeeIngredientRecipe>> COFFEE_MACHINE_INGREDIENTS -
BOOKLET_ENTRIES
-
ALL_CHAPTERS
-
BOOKLET_PAGES_WITH_ITEM_OR_FLUID_DATA
-
STONE_ORES
Deprecated. -
NETHERRACK_ORES
Deprecated. -
methodHandler
Use this to handle things that aren't based in the API itself DO NOT CHANGE/OVERRIDE THIS!! This is getting initialized in Actually Additions' PreInit phase -
connectionHandler
Use this to add, remove or get Laser Relay Connections and Networks The network system is built in a way that doesn't need the individual positions to be Laser Relays, it relies only on BlockPos DO NOT CHANGE/OVERRIDE THIS!! This is getting initialized in Actually Additions' PreInit phase -
entryGettingStarted
-
entryReconstruction
-
entryLaserRelays
-
entryFunctionalNonRF
-
entryFunctionalRF
-
entryGeneratingRF
-
entryItemsNonRF
-
entryItemsRF
-
entryMisc
-
entryUpdatesAndInfos
-
entryAllAndSearch
-
entryTrials
-
lensDefaultConversion
-
lensDetonation
-
lensDeath
-
lensEvenMoarDeath
-
lensColor
-
lensDisenchanting
-
lensMining
-
-
Constructor Details
-
ActuallyAdditionsAPI
public ActuallyAdditionsAPI()
-
-
Method Details
-
addMiningLensStoneOre
Adds an ore with a specific weight to the list of ores that the lens of the miner will generate inside of stone. Higher weight means higher occurence.- Parameters:
oreName- The ore's nameweight- The ore's weight
-
addMiningLensNetherOre
Adds an ore with a specific weight to the list of ores that the lens of the miner will generate inside of netherrack. Higher weight means higher occurence.- Parameters:
oreName- The ore's nameweight- The ore's weight
-
addCrusherRecipe
public static void addCrusherRecipe(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack outputOne, net.minecraft.world.item.ItemStack outputTwo, int outputTwoChance) Adds a Recipe to the Crusher Recipe Registry- Parameters:
input- The input as an ItemStackoutputOne- The first stack as an ItemStackoutputTwo- The second stack as an ItemStack (can be ItemStack.EMPTY if there should be none)outputTwoChance- The chance of the second stack (0 won't occur at all, 100 will all the time)
-
addCrusherRecipe
public static void addCrusherRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack outputOne, net.minecraft.world.item.ItemStack outputTwo, int outputTwoChance) Adds a Recipe to the Crusher Recipe Registry- Parameters:
input- The input as an IngredientoutputOne- The first stack as an ItemStackoutputTwo- The second stack as an ItemStack (can be ItemStack.EMPTY if there should be none)outputTwoChance- The chance of the second stack (0 won't occur at all, 100 will all the time)
-
addCrusherRecipes
public static boolean addCrusherRecipes(List<net.minecraft.world.item.ItemStack> inputs, List<net.minecraft.world.item.ItemStack> outputOnes, int outputOneAmounts, List<net.minecraft.world.item.ItemStack> outputTwos, int outputTwoAmounts, int outputTwoChance) Adds multiple Recipes to the Crusher Recipe Registry Use this if you want to add OreDictionary recipes easier- Parameters:
inputs- The inputs as an ItemStack List, stacksizes are ignoredoutputOnes- The first outputs as an ItemStack List, stacksizes are ignoredoutputOneAmounts- The amount of the first stack, will be equal for all entries in the listoutputTwos- The second outputs as a List (can be null or empty if there should be none)outputTwoAmounts- The amount of the second stack, will be equal for all entries in the listoutputTwoChance- The chance of the second stack (0 won't occur at all, 100 will all the time)
-
addCrusherRecipes
@Deprecated public static boolean addCrusherRecipes(List<net.minecraft.world.item.ItemStack> inputs, net.minecraft.world.item.ItemStack outputOne, int outputOneAmount, net.minecraft.world.item.ItemStack outputTwo, int outputTwoAmount, int outputTwoChance) Deprecated. -
addEmpowererRecipe
public static void addEmpowererRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output, net.minecraft.world.item.crafting.Ingredient modifier1, net.minecraft.world.item.crafting.Ingredient modifier2, net.minecraft.world.item.crafting.Ingredient modifier3, net.minecraft.world.item.crafting.Ingredient modifier4, int energyPerStand, int time, int particleColor) -
addReconstructorLensConversionRecipe
@Deprecated public static void addReconstructorLensConversionRecipe(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack output, int energyUse, LensConversion type) Deprecated.Adds a recipe to the Atomic Reconstructor conversion lenses StackSizes can only be 1 and greater ones will be ignored- Parameters:
input- The input as an ItemStackoutput- The stack as an ItemStackenergyUse- The amount of RF used per conversiontype- The type of lens used for the conversion. To use the default type, use method below. Note how this always has to be the same instance of the lens type that the item also has for it to work!
-
addReconstructorLensConversionRecipe
@Deprecated public static void addReconstructorLensConversionRecipe(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack output, int energyUse) Deprecated. -
addReconstructorLensConversionRecipe
public static void addReconstructorLensConversionRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output, int energyUse, LensConversion type) Adds a recipe to the Atomic Reconstructor conversion lenses StackSizes can only be 1 and greater ones will be ignored- Parameters:
input- The input as an ItemStackoutput- The stack as an ItemStackenergyUse- The amount of RF used per conversiontype- The type of lens used for the conversion. To use the default type, use method below. Note how this always has to be the same instance of the lens type that the item also has for it to work!
-
addReconstructorLensConversionRecipe
public static void addReconstructorLensConversionRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output, int energyUse) -
addCoffeeMachineIngredient
Adds an ingredient to the Coffee Machine ingredient list- Parameters:
ingredient- The ingredient to add
-
addBookletEntry
Adds a booklet entry to the list of entries- Parameters:
entry- The entry to add
-
addFarmerBehavior
Adds a new farmer behavior to the Farmer- Parameters:
behavior- The behavior to add
-