From 5dad8067eb93e9cfa9536f6ae61cf4cbe2a1a880 Mon Sep 17 00:00:00 2001 From: Prospector Date: Sun, 27 Mar 2016 10:30:32 -0700 Subject: [PATCH] Hide fluids from JEI --- .../compat/jei/TechRebornJeiPlugin.java | 26 ++++++++++++++++++ .../iron_machines/iron_machine_side.png | Bin 503 -> 490 bytes .../iron_machines/iron_machine_top.png | Bin 441 -> 428 bytes .../electric_furnace_front_off.png | Bin 694 -> 681 bytes .../tier1_machines/tier1_machine_side.png | Bin 460 -> 597 bytes .../tier1_machines/tier1_machine_top.png | Bin 382 -> 499 bytes 6 files changed, 26 insertions(+) diff --git a/src/main/java/techreborn/compat/jei/TechRebornJeiPlugin.java b/src/main/java/techreborn/compat/jei/TechRebornJeiPlugin.java index 51173a728..e85c474b9 100644 --- a/src/main/java/techreborn/compat/jei/TechRebornJeiPlugin.java +++ b/src/main/java/techreborn/compat/jei/TechRebornJeiPlugin.java @@ -19,6 +19,7 @@ import techreborn.api.reactor.FusionReactorRecipeHelper; import techreborn.api.recipe.RecipeHandler; import techreborn.api.recipe.machines.AssemblingMachineRecipe; import techreborn.api.recipe.machines.ImplosionCompressorRecipe; +import techreborn.blocks.fluid.BlockFluidTechReborn; import techreborn.client.container.ContainerAlloyFurnace; import techreborn.client.container.ContainerAlloySmelter; import techreborn.client.container.ContainerAssemblingMachine; @@ -90,6 +91,7 @@ import techreborn.compat.jei.scrapbox.ScrapboxRecipeHandler; import techreborn.compat.jei.vacuumFreezer.VacuumFreezerRecipeCategory; import techreborn.compat.jei.vacuumFreezer.VacuumFreezerRecipeHandler; import techreborn.config.ConfigTechReborn; +import techreborn.init.ModFluids; import techreborn.init.ModItems; import techreborn.items.ItemParts; @@ -124,6 +126,30 @@ public class TechRebornJeiPlugin extends BlankModPlugin IJeiHelpers jeiHelpers = registry.getJeiHelpers(); IGuiHelper guiHelper = jeiHelpers.getGuiHelper(); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidBerylium)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidCalcium)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidCalciumCarbonate)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidChlorite)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidDeuterium)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidGlyceryl)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidHelium)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidHelium3)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidHeliumplasma)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidHydrogen)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidLithium)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidMercury)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidMethane)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitrocoalfuel)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitrofuel)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitrogen)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitrogendioxide)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidPotassium)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidSilicon)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidSodium)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidSodiumpersulfate)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidTritium)); + jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidWolframium)); + registry.addRecipeCategories(new AlloySmelterRecipeCategory(guiHelper), new AssemblingMachineRecipeCategory(guiHelper), new BlastFurnaceRecipeCategory(guiHelper), new CentrifugeRecipeCategory(guiHelper), new ChemicalReactorRecipeCategory(guiHelper), diff --git a/src/main/resources/assets/techreborn/textures/blocks/machine/iron_machines/iron_machine_side.png b/src/main/resources/assets/techreborn/textures/blocks/machine/iron_machines/iron_machine_side.png index 24a1625aa17002d2bd818dfb432e39a33c68cae4..23c60304d59781dc5798867918457d8dcac550ad 100644 GIT binary patch delta 24 gcmey){EB&k%0xp6u3`oTp<>1!rJd{>gO@M@0AslakN^Mx delta 35 rcmaFG{GEA%3KwH>kh>GZx^prwCn`#Fl`t>}l`!5*ldst5wuBJ?*pLgq diff --git a/src/main/resources/assets/techreborn/textures/blocks/machine/iron_machines/iron_machine_top.png b/src/main/resources/assets/techreborn/textures/blocks/machine/iron_machines/iron_machine_top.png index 66085310c55324c2d3e94a8b7f4ab724fb0e7473..934be7979ff206411027054ef3757f8fa2af4166 100644 GIT binary patch delta 24 fcmdnVyoPy#%0xp6u3`oTp<>1!rJd{>gVPuRSQ!S^ delta 35 rcmZ3(ypwr?3KwH>kh>GZx^prwCn`#Fl`t>}l`!5*ldst5mc|GG$D9iV diff --git a/src/main/resources/assets/techreborn/textures/blocks/machine/tier1_machines/electric_furnace_front_off.png b/src/main/resources/assets/techreborn/textures/blocks/machine/tier1_machines/electric_furnace_front_off.png index 4e2e61bc04683fa12e99766b9e6df3e313cc98ef..7b61a852de3fff0c1dc06c589604191cc54c5752 100644 GIT binary patch delta 24 gcmdnSx{`H*%0xp6u0sqAe1{lCHM|-&1}8HC09#WB1poj5 delta 35 rcmZ3kh>GZx^prwCn`#F9cEzQJIr`Ie?`hhw`3*&(BupP diff --git a/src/main/resources/assets/techreborn/textures/blocks/machine/tier1_machines/tier1_machine_side.png b/src/main/resources/assets/techreborn/textures/blocks/machine/tier1_machines/tier1_machine_side.png index 537ab32cdaa1871b80c90d882a55023dcc619d00..37d74ac2cc796b86e3de01f13a81135a9b7a8370 100644 GIT binary patch delta 583 zcmV-N0=WIm1JwkO8Gix*005AYXf^-<00DDSM?wIu&K&6g000DMK}|sb0I`n?{9y$E z000SaNLh0L01|Wn01|Wo-ewprd0X;qxAM(e0}>1P6UPLm;B=sahcn@RO9-zSkevk?{83Re*LS}&n6xWNE4MR z>S!vhDj%PXpMM|PQjr3Y5`1xeldRT|^032fE)q}bH%OiUzq}-Sch5YG0WiosJBf3B zXhTgfe$*`Byx!m$XQeU_8_NivB@|C&N^~+VehjG55y^7c7+^(k{RUR~cbhy^ZvVGU zKzAc{qP9=tTogKtt?fjEo8iF5HdU|^-d);?aIzZNqkl`)e2dDr9^%v=+5~X#@|rui z;`9f#g#c~GydT&+^OLUGi5YK~X-M($EUmf%%T$rVQQN&fTIf*2r`&T8lXXH3j85ud z3js-`XGBUW7}MP2P7lAmLsr#ew%`U5W1XInw!~9M9WDc%{btqCH)ydtEjA6QK@6LI zXwxA4!a&=5Osace7%M+gN2VM=I8q`YI=4GHZ*A|^4O~rz5n~u2;-SLL VJ?A;epNaqg002ovPDHLkV1nrm|KI=s delta 445 zcmV;u0Yd)O1k3}F8Gi-<001BJ|6u?C0h38YK~y-)Ws^&i+b|47A3(}>s*>FQYPrH_ zJlRa55s6P0GAX;FjX)LgdEJowTHiAxhzQIKGb7xwZuH&}5thqBcmR-@#N&RrQ%fnN zDw;`M7M>pwnQ^!i5o9Lrj=R(LoeHpAj>L>aRQ`L9?h!$24SzSo-TC^vQAGq1Av4jU zWaccEnOHM=YxLgn2cnx#N%l^5E0aHr|k_@CE`>Xz}>Olv3@X5yv$j!Zre6h9@eQUb*V4bO$(n;T5Hsg^?e?! zb$ah)=8J`;lz*wqvMf{d`?^x^Z!4GU6*D_0F(V?*u`^FBJNMzfuGHW655E8WK}1ZE z-2IIEVcigN*siKvZ#U|n&rh!3ZqvSzq(x`9F|zx4R@GwBulYMH#FQ#M49?vz@OI08fv)hTQ~CanPV naq-#n;rI9^KpuywM@H}uq-4LaNEuLp00000NkvXXu0mjfRr%Zh diff --git a/src/main/resources/assets/techreborn/textures/blocks/machine/tier1_machines/tier1_machine_top.png b/src/main/resources/assets/techreborn/textures/blocks/machine/tier1_machines/tier1_machine_top.png index d5fadf931e47b39960cdd9e85af050fb4c0b0c51..fdf350ef53f553186d5205f7975b9d05af144065 100644 GIT binary patch delta 484 zcmVcBiOBd6aA+6xv+}kMaHhC@2bc6TlvuwFV9@@Y(9?#M9N_^Yho}>Cxij)#m5J($vM&*2dM>$JW@$*V)P0+RNMA%-r40-QLdM z;NkT2!qC#d&d}E9=)%#{(&OaR<>t!T+riJ#psTK{x4O2&#ecTM#<|DIy2#4A$;-aX z&Yq~Nxm~8i0002ENklviDk9qa;f1LUf(`0xxc&& z^Yga1aJe;!$jHnS(;Wt8Vj^M>47WRs9G!^pzh!QS3&PBi5EBj#Vra;r52J&T*(lZ1 zYDtDcnL=nnNN0$YIxmfC>ZGaLwO5!Nh{PzO8p$$DTF#=yM~ZOs1M^wRd3vZ)*Y4jH z)W7TLXrm{qvG86U^KuAg4YMr?@bSjXJI1BUK#Y;&KNX>xG=15D@&&tDYjasU7T M07*qoM6N<$f&tprH2?qr