Added tooltip support. Also adds formatted text to make formatted tooltips.

This commit is contained in:
Stan Hebben committed 2014-08-30 17:03:52 +02:00
1 parent 25b9589af7
commit 1b2554170a
33 files changed
+1377 -12

No files matched your search

@@ -135,6 +135,13 @@ public class IngredientTransform {
});
}
/**
* Gives an item back to the player. Also clears the inventory slot at that position.
*
* @param ingredient
* @param givenItem
* @return
*/
@ZenMethod
public static IIngredient giveBack(IIngredient ingredient, @Optional final IItemStack givenItem) {
return ingredient.transform(new IItemTransformer() {