From 1715c1f5bbf1dd1afb3554499a8b1780d21dd671 Mon Sep 17 00:00:00 2001 From: Ryan Barlow <7389646+ryanbarlow97@users.noreply.github.com> Date: Thu, 24 Sep 2026 14:43:47 +0000 Subject: [PATCH 1/2] refactor: use TLibs inventory scanner --- README.md | 8 ++++++++ pom.xml | 15 +-------------- .../java/net/tfminecraft/cooking/Cooking.java | 2 +- .../cooking/fishing/LegacyFishScan.java | 2 +- .../tfminecraft/cooking/manager/TagManager.java | 2 +- src/main/resources/plugin.yml | 2 +- 6 files changed, 13 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index dcd570d..e3f241e 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,14 @@ Cooking makes food an interactive part of everyday life. Players grow and gather A harvest can become flour, dough, bread, or part of a cooked dish. Milk and meat enter their own preparation chains, and the result can be served through furniture as well as carried as food items. Cooking connects these activities into a shared system for farmers, cooks, and diners. +## Scanner dependency + +Cooking requires TLibs 2.1.0 or newer for shared inventory scanning. Food tags and +legacy fish conversion subscribe to TLibs during enable and unsubscribe during +disable; Cooking no longer requires TFMCCore. Install the new TLibs release before +updating Cooking. To roll Cooking back, retain or restore TFMCCore for its old +scanner API. + ## Documentation [Project documentation](https://github.com/TF-Minecraft/Docs/blob/main/projects/Cooking/README.md) diff --git a/pom.xml b/pom.xml index 6c15ce6..ff72b79 100644 --- a/pom.xml +++ b/pom.xml @@ -15,8 +15,7 @@ 0.2.0 2.0.1 3.0.1 - 2.0.0 - 2.0.0 + 2.1.0 @@ -63,18 +62,6 @@ - - net.tfminecraft - tfmccore - ${tfmccore.version} - provided - - - * - * - - - net.tfminecraft rpcharacters diff --git a/src/main/java/net/tfminecraft/cooking/Cooking.java b/src/main/java/net/tfminecraft/cooking/Cooking.java index db89e8c..d82aef4 100644 --- a/src/main/java/net/tfminecraft/cooking/Cooking.java +++ b/src/main/java/net/tfminecraft/cooking/Cooking.java @@ -75,7 +75,7 @@ import net.tfminecraft.cooking.oven.OvenCavityManager; import net.tfminecraft.cooking.oven.OvenHandler; import net.tfminecraft.cooking.oven.OvenLifecycleHandler; -import net.tfminecraft.tfmccore.itemscan.ItemScanService; +import net.tfminecraft.tlibs.itemscan.ItemScanService; public class Cooking extends JavaPlugin { diff --git a/src/main/java/net/tfminecraft/cooking/fishing/LegacyFishScan.java b/src/main/java/net/tfminecraft/cooking/fishing/LegacyFishScan.java index 74d9506..2c933c1 100644 --- a/src/main/java/net/tfminecraft/cooking/fishing/LegacyFishScan.java +++ b/src/main/java/net/tfminecraft/cooking/fishing/LegacyFishScan.java @@ -6,7 +6,7 @@ import org.bukkit.inventory.ItemStack; import net.tfminecraft.cooking.item.FoodItem; -import net.tfminecraft.tfmccore.itemscan.ItemScanHandler; +import net.tfminecraft.tlibs.itemscan.ItemScanHandler; public final class LegacyFishScan implements ItemScanHandler { diff --git a/src/main/java/net/tfminecraft/cooking/manager/TagManager.java b/src/main/java/net/tfminecraft/cooking/manager/TagManager.java index d68e0f3..b07d644 100644 --- a/src/main/java/net/tfminecraft/cooking/manager/TagManager.java +++ b/src/main/java/net/tfminecraft/cooking/manager/TagManager.java @@ -11,7 +11,7 @@ import net.tfminecraft.cooking.item.FoodItem; import net.tfminecraft.cooking.utils.ItemUpdater; import net.tfminecraft.cooking.utils.Keys; -import net.tfminecraft.tfmccore.itemscan.ItemScanHandler; +import net.tfminecraft.tlibs.itemscan.ItemScanHandler; public class TagManager implements ItemScanHandler { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index c3b76b8..f6fac1f 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -4,7 +4,7 @@ name: Cooking version: ${project.version} author: Drefvelin -depend: [TLibs, InteractibleFurniture, TFMCCore] +depend: [TLibs, InteractibleFurniture] softdepend: [RPCharacters, MMOCore, CustomCrops, SimpleFactions, CustomFishing] commands: From 90844e30ea4c5ba3e766234584bed4454e06ef77 Mon Sep 17 00:00:00 2001 From: Ryan Barlow <7389646+ryanbarlow97@users.noreply.github.com> Date: Thu, 24 Sep 2026 14:53:20 +0000 Subject: [PATCH 2/2] docs: keep rollout details in central documentation --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index e3f241e..dcd570d 100644 --- a/README.md +++ b/README.md @@ -17,14 +17,6 @@ Cooking makes food an interactive part of everyday life. Players grow and gather A harvest can become flour, dough, bread, or part of a cooked dish. Milk and meat enter their own preparation chains, and the result can be served through furniture as well as carried as food items. Cooking connects these activities into a shared system for farmers, cooks, and diners. -## Scanner dependency - -Cooking requires TLibs 2.1.0 or newer for shared inventory scanning. Food tags and -legacy fish conversion subscribe to TLibs during enable and unsubscribe during -disable; Cooking no longer requires TFMCCore. Install the new TLibs release before -updating Cooking. To roll Cooking back, retain or restore TFMCCore for its old -scanner API. - ## Documentation [Project documentation](https://github.com/TF-Minecraft/Docs/blob/main/projects/Cooking/README.md)