/** * 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 @ [Jun 28, 2015, 3:23:15 PM (GMT)] */ package vazkii.botania.api.lexicon.multiblock.component; import net.minecraft.block.Block; import net.minecraft.util.ChunkCoordinates; import net.minecraft.world.World; import vazkii.botania.api.BotaniaAPI; /** * A multiblock component that matches any botania flower. */ public class FlowerComponent extends ColorSwitchingComponent { public FlowerComponent(ChunkCoordinates relPos, Block block) { super(relPos, block); } @Override public boolean matches(World world, int x, int y, int z) { return BotaniaAPI.internalHandler.isBotaniaFlower(world, x, y, z); } @Override public MultiblockComponent copy() { return new FlowerComponent(relPos, block); } }