mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Make dice of fate function again, fix most remaining crafting recipes, fix lexicon images
159 lines
3.8 KiB
Java
159 lines
3.8 KiB
Java
/**
|
|
* 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
|
|
*
|
|
* Botania is Open Source and distributed under the
|
|
* Botania License: http://botaniamod.net/license.php
|
|
*
|
|
* File Created @ [Jan 14, 2014, 6:43:03 PM (GMT)]
|
|
*/
|
|
package vazkii.botania.api.internal;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.entity.player.PlayerEntity;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.util.Direction;
|
|
import net.minecraft.util.ResourceLocation;
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.world.World;
|
|
import net.minecraftforge.items.IItemHandlerModifiable;
|
|
import vazkii.botania.api.brew.Brew;
|
|
import vazkii.botania.api.corporea.IWrappedInventory;
|
|
import vazkii.botania.api.corporea.InvWithLocation;
|
|
import vazkii.botania.api.lexicon.LexiconPage;
|
|
import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
|
|
import vazkii.botania.api.subtile.TileEntitySpecialFlower;
|
|
|
|
import java.util.List;
|
|
|
|
public class DummyMethodHandler implements IInternalMethodHandler {
|
|
|
|
@Override
|
|
public LexiconPage textPage(String key) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public LexiconPage elfPaperTextPage(String key) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public LexiconPage imagePage(String key, String resource) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public LexiconPage craftingRecipePage(String key, Item... outputItems) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public LexiconPage petalRecipePage(String key, Item... outputItems) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public LexiconPage runeRecipePage(String key, Item... outputItems) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public LexiconPage manaInfusionRecipePage(String key, Item... outputItems) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public LexiconPage elvenTradePage(String key, Item... outputItems) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public LexiconPage brewPage(String key, String bottomText, Brew outputBrew) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public LexiconPage multiblockPage(String key, MultiblockSet mb) {
|
|
return dummyPage(key);
|
|
}
|
|
|
|
private LexiconPage dummyPage(String key) {
|
|
return new DummyPage(key);
|
|
}
|
|
|
|
@Override
|
|
public IManaNetwork getManaNetworkInstance() {
|
|
return DummyManaNetwork.instance;
|
|
}
|
|
|
|
@Override
|
|
public void drawSimpleManaHUD(int color, int mana, int maxMana, String name) {}
|
|
|
|
@Override
|
|
public void drawComplexManaHUD(int color, int mana, int maxMana, String name, ItemStack bindDisplay, boolean properlyBound) {}
|
|
|
|
@Override
|
|
public ItemStack getBindDisplayForFlowerType(TileEntitySpecialFlower e) {
|
|
return ItemStack.EMPTY;
|
|
}
|
|
|
|
@Override
|
|
public void renderLexiconText(int x, int y, int width, int height, String unlocalizedText) {}
|
|
|
|
@Override
|
|
public void sparkleFX(World world, double x, double y, double z, float r, float g, float b, float size, int m) {}
|
|
|
|
@Override
|
|
public IItemHandlerModifiable getAccessoriesInventory(PlayerEntity player) {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public boolean shouldForceCheck() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public int getPassiveFlowerDecay() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public ResourceLocation getDefaultBossBarTexture() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public boolean isBuildcraftPipe(TileEntity tile) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public void breakOnAllCursors(PlayerEntity player, Item item, ItemStack stack, BlockPos pos, Direction side) {}
|
|
|
|
@Override
|
|
public boolean hasSolegnoliaAround(Entity e) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public long getWorldElapsedTicks() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean isBotaniaFlower(World world, BlockPos pos) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public List<IWrappedInventory> wrapInventory(List<InvWithLocation> inventories) {
|
|
return null;
|
|
}
|
|
|
|
}
|