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

229 lines
5.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:43:03 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.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
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;
public class DummyMethodHandler implements IInternalMethodHandler {
2014-04-20 19:38:15 +01:00
@Override
public LexiconPage textPage(String key) {
return dummyPage(key);
}
@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
@Override
public LexiconPage brewPage(String key, String bottomText, RecipeBrew recipe) {
return dummyPage(key);
}
2015-06-29 20:13:45 +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
@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-08-17 21:03:55 +01:00
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
@Override
2015-07-20 21:04:48 +01:00
public ItemStack getBindDisplayForFlowerType(SubTileEntity e) {
return new ItemStack(Blocks.stone, 0, 0);
}
2015-08-17 21:03:55 +01:00
2015-07-20 21:04:48 +01:00
@Override
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
}
@Override
public IInventory getBaublesInventory(EntityPlayer player) {
return null;
}
@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
}
@Override
public boolean isBuildcraftPipe(TileEntity tile) {
return false;
}
@Override
public void breakOnAllCursors(EntityPlayer player, Item item, ItemStack stack, int x, int y, int z, int side) {
// NO-OP
}
2015-12-05 21:10:07 +00:00
@Override
public boolean hasSolegnoliaAround(Entity e) {
return false;
}
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
@Override
public void sendBaubleUpdatePacket(EntityPlayer player, int slot) {
// NO-OP
}
}