diff options
author | Jakub <53441451+kuba6000@users.noreply.github.com> | 2023-04-10 21:02:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 21:02:49 +0200 |
commit | 0ecb697d75b25206daf921ecec1c910d6ab77491 (patch) | |
tree | 1200eb0151e16c9b21187a0f764dced1d9fd9e91 /src/main/java/kubatech/loaders/TCLoader.java | |
parent | e0c9332c12847e4705ea29aa0ed15dcb3806dca4 (diff) | |
download | GT5-Unofficial-0ecb697d75b25206daf921ecec1c910d6ab77491.tar.gz GT5-Unofficial-0ecb697d75b25206daf921ecec1c910d6ab77491.tar.bz2 GT5-Unofficial-0ecb697d75b25206daf921ecec1c910d6ab77491.zip |
Tea Network update: still alpha (#69)
* Move to UUID checking and BigInteger tea count
* Research category
* Start working on tea limit
* Maybe
* Update en_US.lang
* Fix
* Save UUID mapping
* Mark dirty
* Fixes
Diffstat (limited to 'src/main/java/kubatech/loaders/TCLoader.java')
-rw-r--r-- | src/main/java/kubatech/loaders/TCLoader.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main/java/kubatech/loaders/TCLoader.java b/src/main/java/kubatech/loaders/TCLoader.java index a4141d4ba5..37aed521cc 100644 --- a/src/main/java/kubatech/loaders/TCLoader.java +++ b/src/main/java/kubatech/loaders/TCLoader.java @@ -15,6 +15,7 @@ import java.util.Arrays; import java.util.HashSet; import java.util.stream.Collectors; +import kubatech.Tags; import kubatech.api.LoaderReference; import kubatech.api.enums.ItemList; import kubatech.api.utils.ItemID; @@ -22,6 +23,7 @@ import kubatech.loaders.item.items.TeaUltimate; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; +import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import thaumcraft.api.ThaumcraftApi; @@ -36,9 +38,13 @@ import cpw.mods.fml.common.registry.GameRegistry; public class TCLoader { - public static void load() {} + public static final String TCCategoryKey = "KUBATECH"; - public static void register() { + public static void init() { + ResearchCategories.registerCategory( + TCCategoryKey, + new ResourceLocation(Tags.MODID, "textures/gui/green_tea.png"), + new ResourceLocation("thaumcraft", "textures/gui/gui_researchback.png")); if (!LoaderReference.GTNHCoreMod || !LoaderReference.DraconicEvolution) return; registerRecipe(); registerResearch(); @@ -102,7 +108,7 @@ public class TCLoader { if (ultimateTeaResearch == null) { ultimateTeaResearch = new ResearchItem( "KT_UltimateTea", - "NEWHORIZONS", + TCCategoryKey, new AspectList().add(Aspect.MAGIC, 1).add(Aspect.HEAL, 1).add(Aspect.PLANT, 1) .add(Aspect.EXCHANGE, 1), -2, |