spockbot.mcdata.recipes module¶
-
class
spockbot.mcdata.recipes.Recipe(raw)¶ Bases:
object-
ingredient_positions¶ Returns: In the form { (item_id, metadata) -> [(x, y, amount), ...] } Return type: dict
-
total_ingredient_amounts¶ Returns: In the form { (item_id, metadata) -> amount } Return type: dict
-
-
class
spockbot.mcdata.recipes.RecipeItem(id, meta, amount)¶ Bases:
tuple-
__getnewargs__()¶ Return self as a plain tuple. Used by copy and pickle.
-
__getstate__()¶ Exclude the OrderedDict from pickling
-
static
__new__(_cls, id, meta, amount)¶ Create new instance of RecipeItem(id, meta, amount)
-
__repr__()¶ Return a nicely formatted representation string
-
amount¶ Alias for field number 2
-
id¶ Alias for field number 0
-
meta¶ Alias for field number 1
-
-
spockbot.mcdata.recipes.get_any_recipe(item, meta=None)¶
-
spockbot.mcdata.recipes.iter_recipes(item_id, meta=None)¶
-
spockbot.mcdata.recipes.reformat_item(raw, default_meta=None)¶
-
spockbot.mcdata.recipes.reformat_shape(shape)¶