2016-05-16 22:52:27 +02:00
|
|
|
/*
|
|
|
|
* This file ("IMethodHandler.java") is part of the Actually Additions mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://ellpeck.de/actaddlicense
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2016-05-16 22:52:27 +02:00
|
|
|
*/
|
|
|
|
|
2016-05-14 13:51:18 +02:00
|
|
|
package de.ellpeck.actuallyadditions.api.internal;
|
|
|
|
|
2018-06-23 01:39:30 +02:00
|
|
|
import java.util.List;
|
|
|
|
|
2016-11-12 15:13:20 +01:00
|
|
|
import de.ellpeck.actuallyadditions.api.booklet.IBookletChapter;
|
|
|
|
import de.ellpeck.actuallyadditions.api.booklet.IBookletEntry;
|
|
|
|
import de.ellpeck.actuallyadditions.api.booklet.IBookletPage;
|
2016-05-14 13:51:18 +02:00
|
|
|
import de.ellpeck.actuallyadditions.api.recipe.CoffeeIngredient;
|
2016-05-14 14:14:06 +02:00
|
|
|
import net.minecraft.block.state.IBlockState;
|
2016-05-14 13:51:18 +02:00
|
|
|
import net.minecraft.item.ItemStack;
|
2016-11-12 15:13:20 +01:00
|
|
|
import net.minecraft.item.crafting.IRecipe;
|
2016-05-14 13:51:18 +02:00
|
|
|
import net.minecraft.potion.PotionEffect;
|
2016-11-12 15:13:20 +01:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
2016-05-14 14:14:06 +02:00
|
|
|
import net.minecraft.util.math.BlockPos;
|
2016-05-14 13:51:18 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is the internal method handler.
|
|
|
|
* Use ActuallyAdditionsAPI.methodHandler for calling
|
|
|
|
* This is not supposed to be implemented.
|
|
|
|
*/
|
|
|
|
public interface IMethodHandler{
|
|
|
|
|
|
|
|
boolean addEffectToStack(ItemStack stack, CoffeeIngredient ingredient);
|
|
|
|
|
|
|
|
PotionEffect getSameEffectFromStack(ItemStack stack, PotionEffect effect);
|
|
|
|
|
|
|
|
void addEffectProperties(ItemStack stack, PotionEffect effect, boolean addDur, boolean addAmp);
|
|
|
|
|
|
|
|
void addEffectToStack(ItemStack stack, PotionEffect effect);
|
|
|
|
|
|
|
|
PotionEffect[] getEffectsFromStack(ItemStack stack);
|
2016-05-14 14:14:06 +02:00
|
|
|
|
|
|
|
boolean invokeConversionLens(IBlockState hitState, BlockPos hitBlock, IAtomicReconstructor tile);
|
2016-07-31 17:20:49 +02:00
|
|
|
|
2017-02-20 13:19:19 +01:00
|
|
|
boolean invokeReconstructor(IAtomicReconstructor tile);
|
2016-10-30 17:13:46 +01:00
|
|
|
boolean addCrusherRecipes(List<ItemStack> inputs, List<ItemStack> outputOnes, int outputOneAmounts, List<ItemStack> outputTwos, int outputTwoAmounts, int outputTwoChance);
|
2017-08-08 17:05:44 +02:00
|
|
|
|
2018-06-23 01:39:30 +02:00
|
|
|
@Deprecated //Use Ingredient input on AA API class
|
2017-08-08 17:05:44 +02:00
|
|
|
boolean addCrusherRecipes(List<ItemStack> inputs, ItemStack outputOne, int outputOneAmount, ItemStack outputTwo, int outputTwoAmount, int outputTwoChance);
|
2016-11-12 15:13:20 +01:00
|
|
|
|
|
|
|
IBookletPage generateTextPage(int id);
|
|
|
|
|
|
|
|
IBookletPage generatePicturePage(int id, ResourceLocation resLoc, int textStartY);
|
|
|
|
|
|
|
|
IBookletPage generateCraftingPage(int id, IRecipe... recipes);
|
|
|
|
|
|
|
|
IBookletPage generateFurnacePage(int id, ItemStack input, ItemStack result);
|
|
|
|
|
|
|
|
IBookletChapter generateBookletChapter(String identifier, IBookletEntry entry, ItemStack displayStack, IBookletPage... pages);
|
2016-11-22 22:54:35 +01:00
|
|
|
|
|
|
|
IBookletPage generateTextPage(int id, int priority);
|
|
|
|
|
|
|
|
IBookletPage generatePicturePage(int id, ResourceLocation resLoc, int textStartY, int priority);
|
|
|
|
|
|
|
|
IBookletPage generateCraftingPage(int id, int priority, IRecipe... recipes);
|
|
|
|
|
|
|
|
IBookletPage generateFurnacePage(int id, ItemStack input, ItemStack result, int priority);
|
|
|
|
|
|
|
|
IBookletChapter generateBookletChapter(String identifier, IBookletEntry entry, ItemStack displayStack, int priority, IBookletPage... pages);
|
2017-02-18 00:54:58 +01:00
|
|
|
|
|
|
|
IBookletChapter createTrial(String identifier, ItemStack displayStack, boolean textOnSecondPage);
|
2016-05-14 13:51:18 +02:00
|
|
|
}
|