mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-26 14:53:03 +00:00
Added tooltip support. Also adds formatted text to make formatted tooltips.
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user