Files
Botania/src/main/java/vazkii/botania/api/internal/IInternalMethodHandler.java
T

125 lines
4.3 KiB
Java
Raw Normal View History

/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
2014-04-20 19:38:15 +01:00
*
2015-01-26 19:53:12 +00:00
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
2014-04-20 19:38:15 +01:00
*
* File Created @ [Jan 14, 2014, 6:34:34 PM (GMT)]
*/
package vazkii.botania.api.internal;
2014-04-20 19:38:34 +01:00
import java.util.List;
import net.minecraft.client.gui.ScaledResolution;
2014-10-17 18:27:28 +01:00
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Item;
2014-02-08 19:58:26 +00:00
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
2014-10-29 21:50:16 +00:00
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
2014-10-29 21:50:16 +00:00
import vazkii.botania.api.boss.IBotaniaBoss;
2014-02-05 13:43:27 +00:00
import vazkii.botania.api.lexicon.LexiconPage;
import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
import vazkii.botania.api.recipe.RecipeBrew;
2014-06-18 00:00:44 +01:00
import vazkii.botania.api.recipe.RecipeElvenTrade;
2014-02-08 13:17:05 +00:00
import vazkii.botania.api.recipe.RecipeManaInfusion;
import vazkii.botania.api.recipe.RecipePetals;
import vazkii.botania.api.recipe.RecipeRuneAltar;
2015-07-20 21:04:48 +01:00
import vazkii.botania.api.subtile.SubTileEntity;
2014-04-20 19:38:34 +01:00
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
/**
* Any methods that refer to internal methods in Botania are here.
* This is defaulted to a dummy handler, whose methods do nothing.
* This handler is set to a proper one on PreInit. Make sure to
* make your mod load after Botania if you have any intention of
* doing anythign with this on PreInit.
*/
public interface IInternalMethodHandler {
2014-04-20 19:38:15 +01:00
public LexiconPage textPage(String key);
2015-01-18 17:16:58 +00:00
public LexiconPage elfPaperTextPage(String key);
2014-01-17 19:34:55 +00:00
2014-04-20 19:38:15 +01:00
public LexiconPage imagePage(String key, String resource);
2014-01-17 19:34:55 +00:00
2014-04-20 19:38:15 +01:00
public LexiconPage craftingRecipesPage(String key, List<IRecipe> recipes);
2014-02-02 13:24:35 +00:00
2014-04-20 19:38:15 +01:00
public LexiconPage craftingRecipePage(String key, IRecipe recipe);
2014-02-02 13:24:35 +00:00
2014-04-20 19:38:15 +01:00
public LexiconPage petalRecipesPage(String key, List<RecipePetals> recipes);
2014-02-08 13:17:05 +00:00
2014-04-20 19:38:15 +01:00
public LexiconPage petalRecipePage(String key, RecipePetals recipe);
2014-02-08 23:29:49 +00:00
2014-04-20 19:38:15 +01:00
public LexiconPage runeRecipesPage(String key, List<RecipeRuneAltar> recipes);
2014-02-08 13:17:05 +00:00
2014-04-20 19:38:15 +01:00
public LexiconPage runeRecipePage(String key, RecipeRuneAltar recipe);
2014-02-08 23:29:49 +00:00
2014-04-20 19:38:15 +01:00
public LexiconPage manaInfusionRecipesPage(String key, List<RecipeManaInfusion> recipes);
2014-02-08 13:17:05 +00:00
2014-04-20 19:38:15 +01:00
public LexiconPage manaInfusionRecipePage(String key, RecipeManaInfusion recipe);
2014-02-08 23:29:49 +00:00
2014-06-18 00:00:44 +01:00
public LexiconPage elvenTradePage(String key, List<RecipeElvenTrade> recipes);
public LexiconPage elvenTradesPage(String key, RecipeElvenTrade recipe);
2015-01-18 17:16:58 +00:00
public LexiconPage brewPage(String key, String bottomText, RecipeBrew recipe);
2014-06-21 01:14:31 +01:00
public LexiconPage multiblockPage(String key, MultiblockSet mb);
2015-06-29 20:13:45 +01:00
2014-04-20 19:38:15 +01:00
public IManaNetwork getManaNetworkInstance();
2014-04-20 19:38:15 +01:00
public ItemStack getSubTileAsStack(String subTile);
2015-01-18 17:16:58 +00:00
public ItemStack getSubTileAsFloatingFlowerStack(String subTile);
2014-02-08 23:29:49 +00:00
2015-04-22 18:54:35 +01:00
public String getStackSubTileKey(ItemStack stack);
2015-05-01 00:58:12 +01:00
2014-04-20 19:38:15 +01:00
public IIcon getSubTileIconForName(String name);
2014-10-17 22:26:19 +01:00
2014-10-17 18:27:28 +01:00
public void registerBasicSignatureIcons(String name, IIconRegister register);
public boolean shouldForceCheck();
2014-10-17 22:26:19 +01:00
2014-10-17 16:55:05 +01:00
public int getPassiveFlowerDecay();
2014-06-27 04:17:40 +01:00
public IInventory getBaublesInventory(EntityPlayer player);
2014-04-27 22:24:46 +01:00
public void breakOnAllCursors(EntityPlayer player, Item item, ItemStack stack, int x, int y, int z, int side);
2015-04-01 00:34:50 +01:00
2014-04-20 19:38:15 +01:00
@SideOnly(Side.CLIENT)
public void drawSimpleManaHUD(int color, int mana, int maxMana, String name, ScaledResolution res);
2015-07-20 21:04:48 +01:00
@SideOnly(Side.CLIENT)
public void drawComplexManaHUD(int color, int mana, int maxMana, String name, ScaledResolution res, ItemStack bindDisplay, boolean properlyBound);
@SideOnly(Side.CLIENT)
public ItemStack getBindDisplayForFlowerType(SubTileEntity e);
@SideOnly(Side.CLIENT)
public void renderLexiconText(int x, int y, int width, int height, String unlocalizedText);
2014-10-17 22:26:19 +01:00
2014-10-29 21:50:16 +00:00
@SideOnly(Side.CLIENT)
public ResourceLocation getDefaultBossBarTexture();
2015-01-18 17:16:58 +00:00
2014-10-29 21:50:16 +00:00
@SideOnly(Side.CLIENT)
public void setBossStatus(IBotaniaBoss status);
2015-01-18 17:16:58 +00:00
public boolean isBuildcraftPipe(TileEntity tile);
2015-01-18 17:16:58 +00:00
2014-04-20 19:38:15 +01:00
public void sparkleFX(World world, double x, double y, double z, float r, float g, float b, float size, int m);
2015-06-29 20:13:45 +01:00
2015-06-27 19:26:24 +01:00
public long getWorldElapsedTicks();
2014-09-03 23:08:32 +01:00
2015-06-28 15:41:18 +01:00
public boolean isBotaniaFlower(World world, int x, int y, int z);
2015-06-29 20:13:45 +01:00
public void sendBaubleUpdatePacket(EntityPlayer player, int slot);
}