2014-01-14 18:46:33 +00:00
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
*
|
2014-01-14 18:46:33 +00:00
|
|
|
* File Created @ [Jan 14, 2014, 6:43:03 PM (GMT)]
|
|
|
|
|
*/
|
|
|
|
|
package vazkii.botania.api.internal;
|
|
|
|
|
|
2014-04-20 19:38:34 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2014-03-07 16:15:59 +00:00
|
|
|
import net.minecraft.client.gui.ScaledResolution;
|
2014-10-17 18:27:28 +01:00
|
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
2014-04-22 11:26:34 +01:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2014-03-29 20:59:26 +00:00
|
|
|
import net.minecraft.init.Blocks;
|
2014-04-22 11:26:34 +01:00
|
|
|
import net.minecraft.inventory.IInventory;
|
2015-03-30 15:20:31 +01:00
|
|
|
import net.minecraft.item.Item;
|
2014-02-08 19:58:26 +00:00
|
|
|
import net.minecraft.item.ItemStack;
|
2014-01-19 17:02:36 +00:00
|
|
|
import net.minecraft.item.crafting.IRecipe;
|
2014-11-01 17:31:54 +00:00
|
|
|
import net.minecraft.tileentity.TileEntity;
|
2014-03-29 20:59:26 +00:00
|
|
|
import net.minecraft.util.IIcon;
|
2014-10-29 21:50:16 +00:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
2014-03-07 16:15:59 +00:00
|
|
|
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;
|
2015-06-29 18:41:19 +01:00
|
|
|
import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
|
2014-11-02 21:31:38 +00:00
|
|
|
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-01-14 18:46:33 +00:00
|
|
|
|
|
|
|
|
public class DummyMethodHandler implements IInternalMethodHandler {
|
|
|
|
|
|
2014-04-20 19:38:15 +01:00
|
|
|
@Override
|
|
|
|
|
public LexiconPage textPage(String key) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-08 00:24:53 +00:00
|
|
|
@Override
|
|
|
|
|
public LexiconPage elfPaperTextPage(String key) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
2015-01-18 17:16:58 +00:00
|
|
|
|
2014-04-20 19:38:15 +01:00
|
|
|
@Override
|
|
|
|
|
public LexiconPage imagePage(String key, String resource) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public LexiconPage craftingRecipesPage(String key, List<IRecipe> recipes) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public LexiconPage craftingRecipePage(String key, IRecipe recipe) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public LexiconPage petalRecipesPage(String key, List<RecipePetals> recipes) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public LexiconPage petalRecipePage(String key, RecipePetals recipe) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public LexiconPage runeRecipesPage(String key, List<RecipeRuneAltar> recipes) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public LexiconPage runeRecipePage(String key, RecipeRuneAltar recipe) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public LexiconPage manaInfusionRecipesPage(String key, List<RecipeManaInfusion> recipes) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public LexiconPage manaInfusionRecipePage(String key, RecipeManaInfusion recipe) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
2014-06-21 01:14:31 +01:00
|
|
|
|
2014-06-18 00:00:44 +01:00
|
|
|
@Override
|
|
|
|
|
public LexiconPage elvenTradePage(String key, List<RecipeElvenTrade> recipes) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public LexiconPage elvenTradesPage(String key, RecipeElvenTrade recipe) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
2015-01-18 17:16:58 +00:00
|
|
|
|
2014-11-02 21:31:38 +00:00
|
|
|
@Override
|
|
|
|
|
public LexiconPage brewPage(String key, String bottomText, RecipeBrew recipe) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
2015-06-29 20:13:45 +01:00
|
|
|
|
2015-06-29 18:41:19 +01:00
|
|
|
@Override
|
|
|
|
|
public LexiconPage multiblockPage(String key, MultiblockSet mb) {
|
|
|
|
|
return dummyPage(key);
|
|
|
|
|
}
|
2014-04-20 19:38:15 +01:00
|
|
|
|
|
|
|
|
private LexiconPage dummyPage(String key) {
|
|
|
|
|
return new DummyPage(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public ItemStack getSubTileAsStack(String subTile) {
|
|
|
|
|
return new ItemStack(Blocks.stone, 0, 0);
|
|
|
|
|
}
|
2015-01-18 17:16:58 +00:00
|
|
|
|
2014-12-21 02:44:58 +00:00
|
|
|
@Override
|
|
|
|
|
public ItemStack getSubTileAsFloatingFlowerStack(String subTile) {
|
|
|
|
|
return getSubTileAsStack(subTile);
|
|
|
|
|
}
|
2014-04-20 19:38:15 +01:00
|
|
|
|
2015-04-22 18:54:35 +01:00
|
|
|
@Override
|
|
|
|
|
public String getStackSubTileKey(ItemStack stack) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-05-01 00:58:12 +01:00
|
|
|
|
2014-04-20 19:38:15 +01:00
|
|
|
@Override
|
|
|
|
|
public IIcon getSubTileIconForName(String name) {
|
|
|
|
|
return Blocks.red_flower.getIcon(0, 0);
|
|
|
|
|
}
|
2014-10-17 22:26:19 +01:00
|
|
|
|
2014-10-17 18:27:28 +01:00
|
|
|
@Override
|
|
|
|
|
public void registerBasicSignatureIcons(String name, IIconRegister register) {
|
|
|
|
|
// NO-OP
|
|
|
|
|
}
|
2014-04-20 19:38:15 +01:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public IManaNetwork getManaNetworkInstance() {
|
|
|
|
|
return DummyManaNetwork.instance;
|
|
|
|
|
}
|
2014-09-03 23:08:32 +01:00
|
|
|
|
2014-04-20 19:38:15 +01:00
|
|
|
@Override
|
|
|
|
|
public void drawSimpleManaHUD(int color, int mana, int maxMana, String name, ScaledResolution res) {
|
|
|
|
|
// NO-OP
|
|
|
|
|
}
|
2015-07-20 21:04:48 +01:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void drawComplexManaHUD(int color, int mana, int maxMana, String name, ScaledResolution res, ItemStack bindDisplay, boolean properlyBound) {
|
|
|
|
|
// NO-OP
|
|
|
|
|
}
|
2014-10-17 22:26:19 +01:00
|
|
|
|
2014-10-17 19:07:21 +01:00
|
|
|
@Override
|
2015-07-20 21:04:48 +01:00
|
|
|
public ItemStack getBindDisplayForFlowerType(SubTileEntity e) {
|
|
|
|
|
return new ItemStack(Blocks.stone, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2014-10-17 19:07:21 +01:00
|
|
|
public void renderLexiconText(int x, int y, int width, int height, String unlocalizedText) {
|
|
|
|
|
// NO-OP
|
|
|
|
|
}
|
2014-04-20 19:38:15 +01:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void sparkleFX(World world, double x, double y, double z, float r, float g, float b, float size, int m) {
|
|
|
|
|
// NO-OP
|
|
|
|
|
}
|
2014-01-19 17:02:36 +00:00
|
|
|
|
2014-04-22 11:26:34 +01:00
|
|
|
@Override
|
|
|
|
|
public IInventory getBaublesInventory(EntityPlayer player) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-23 15:48:58 +01:00
|
|
|
@Override
|
|
|
|
|
public boolean shouldForceCheck() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2014-10-17 22:26:19 +01:00
|
|
|
|
2014-10-17 16:55:05 +01:00
|
|
|
@Override
|
|
|
|
|
public int getPassiveFlowerDecay() {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2014-10-17 18:27:28 +01:00
|
|
|
|
2014-10-29 21:50:16 +00:00
|
|
|
@Override
|
|
|
|
|
public ResourceLocation getDefaultBossBarTexture() {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void setBossStatus(IBotaniaBoss status) {
|
|
|
|
|
// NO-OP
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-01 17:31:54 +00:00
|
|
|
@Override
|
|
|
|
|
public boolean isBuildcraftPipe(TileEntity tile) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-30 15:20:31 +01:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void breakOnAllCursors(EntityPlayer player, Item item, ItemStack stack, int x, int y, int z, int side) {
|
|
|
|
|
// NO-OP
|
|
|
|
|
}
|
2015-04-01 00:34:50 +01:00
|
|
|
|
2015-06-27 19:26:24 +01:00
|
|
|
@Override
|
|
|
|
|
public long getWorldElapsedTicks() {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2015-06-29 20:13:45 +01:00
|
|
|
|
2015-06-28 15:41:18 +01:00
|
|
|
@Override
|
|
|
|
|
public boolean isBotaniaFlower(World world, int x, int y, int z) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2015-04-01 00:34:50 +01:00
|
|
|
|
2015-08-15 16:20:33 +01:00
|
|
|
@Override
|
|
|
|
|
public void sendBaubleUpdatePacket(EntityPlayer player, int slot) {
|
|
|
|
|
// NO-OP
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-14 18:46:33 +00:00
|
|
|
}
|