Add recipe classes and an addRecipe method in the server interface.

This commit is contained in:
Celtic Minstrel
2011-04-16 11:34:31 -04:00
committed by EvilSeph
parent 22e7e7afcf
commit 2b408e236a
5 changed files with 345 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ package org.bukkit;
import com.avaje.ebean.config.ServerConfig;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Recipe;
import java.util.List;
import java.util.logging.Logger;
import org.bukkit.command.PluginCommand;
@@ -194,4 +196,11 @@ public interface Server {
* @param config ServerConfig to populate
*/
public void configureDbConfig(ServerConfig config);
/**
* Adds a recipe to the crafting manager.
* @param recipe The recipe to add.
* @return True to indicate that the recipe was added.
*/
public boolean addRecipe(Recipe recipe);
}