Хук в варочную стойку

Версия Minecraft
1.12.2
516
11
39
Всем привет.Хочу сделать хук,чтобы в слот для фуела для варочной стойки можно было класть свой предмет,вот код но предмет нельзя класть
Java:
    @Hook(injectOnExit = true, returnCondition = ReturnCondition.ON_TRUE, returnAnotherMethod = "isValidBrewingFuel")
     public static boolean isItemValid(ContainerBrewingStand cont,ItemStack stack)
     {
         return isValidBrewingFuel(stack);
     }
    public static boolean isValidBrewingFuel(ItemStack stack){
        return stack.getItem() == ItemsRegistry.REAGENT;
      
    }
Помогите пожалуйста
 
516
11
39
Где ты нашел в контейнере метод isItemValid?
ContainerBrewingStand#Fuel
Java:
[15:03:28] [main/INFO] [GradleStart]: Extra: []
[15:03:28] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/lnti1/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[15:03:28] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[15:03:28] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[15:03:28] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[15:03:28] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[15:03:28] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
[15:03:28] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_201, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_201
[15:03:29] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[15:03:29] [main/ERROR] [FML]: Full: C:\Users\lnti1\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[15:03:29] [main/ERROR] [FML]: Trimmed: c:/users/lnti1/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[15:03:30] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[15:03:30] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
2020-04-11 15:03:33,868 main WARN Disabling terminal, you're running in an unsupported environment.
[15:03:33] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[15:03:33] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[15:03:33] [main/INFO] [FML]: Found a command line coremod : gloomyfolken.hooklib.example.ExampleHookLoader
[15:03:34] [main/WARN] [FML]: The coremod gloomyfolken.hooklib.example.ExampleHookLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[15:03:34] [main/INFO] [FML]: Ignoring missing certificate for coremod ExampleHookLoader (gloomyfolken.hooklib.example.ExampleHookLoader), as this is probably a dev workspace
[15:03:34] [main/INFO] [FML]: Searching C:\Users\lnti1\Desktop\mod\run\.\mods for mods
[15:03:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[15:03:34] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[15:03:34] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[15:03:34] [main/INFO] [GradleStart]: Injecting location in coremod gloomyfolken.hooklib.example.ExampleHookLoader
[15:03:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:03:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[15:03:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[15:03:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:03:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:03:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:03:40] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[15:03:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:03:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:03:40] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Parsing hooks container gloomyfolken.hooklib.minecraft.SecondaryTransformerHook
[15:03:40] [main/INFO] [FML]: [HOOKLIB]  Obfuscated: false
[15:03:40] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Parsing hooks container gloomyfolken.hooklib.example.AnnotationHooks
[15:03:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[15:03:41] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class net.minecraftforge.fml.common.Loader
[15:03:41] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method net.minecraftforge.fml.common.Loader#injectData([Ljava/lang/Object;)
[15:03:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[15:03:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[15:03:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[15:03:43] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[15:03:43] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class net.minecraft.client.Minecraft
[15:03:43] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method net.minecraft.client.Minecraft#resize(II)
[15:03:44] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class net.minecraft.entity.Entity
[15:03:44] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:warning:25]: [WARNING] Can not find target method of hook AsmHook: net.minecraft.entity.Entity#getBrightnessForRender(F) -> gloomyfolken.hooklib.example.AnnotationHooks#getBrightnessForRender(Lnet/minecraft/entity/Entity;F)Z, ReturnCondition=ON_TRUE, ReturnValue=ANOTHER_METHOD_RETURN_VALUE, InjectorFactory: gloomyfolken.hooklib.asm.HookInjectorFactory$MethodExit, CreateMethod = false
[15:03:44] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class net.minecraft.entity.player.EntityPlayer
[15:03:44] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method net.minecraft.entity.player.EntityPlayer#getPortalCooldown()
[15:03:45] [main/INFO] [minecraft/Minecraft]: Setting user: Player976
[15:04:00] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[15:04:00] [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
[15:04:03] [main/INFO] [FML]: -- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_201, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 813749000 bytes (776 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML:
    Loaded coremods (and transformers):
ExampleHookLoader (unknown)
  gloomyfolken.hooklib.minecraft.PrimaryClassTransformer
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.200.1062.1004' Renderer: 'AMD Radeon(TM) R4 Graphics'
[15:04:03] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
[15:04:03] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[15:04:04] [main/INFO] [FML]: Replaced 1036 ore ingredients
[15:04:04] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class net.minecraftforge.common.ForgeHooks
[15:04:05] [main/INFO] [STDOUT]: [gloomyfolken.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method net.minecraftforge.common.ForgeHooks#getTotalArmorValue(Lnet/minecraft/entity/player/EntityPlayer;)I
[15:04:06] [main/INFO] [FML]: Searching C:\Users\lnti1\Desktop\mod\run\.\mods for mods
[15:04:08] [Thread-3/INFO] [FML]: Using alternative sync timing : 200 frames of Display.update took 2996037100 nanos
[15:04:10] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[15:04:12] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, survivalmod] at CLIENT
[15:04:12] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, survivalmod] at SERVER
[15:04:14] [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:SurvivalMod
[15:04:16] [main/INFO] [FML]: Processing ObjectHolder annotations
[15:04:16] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[15:04:16] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[15:04:16] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[15:04:16] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
[15:04:16] [main/INFO] [FML]: Applying holder lookups
[15:04:16] [main/INFO] [FML]: Holder lookups applied
[15:04:17] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[15:04:17] [main/INFO] [FML]: Applying holder lookups
[15:04:17] [main/INFO] [FML]: Holder lookups applied
[15:04:17] [main/INFO] [FML]: Applying holder lookups
[15:04:17] [main/INFO] [FML]: Holder lookups applied
[15:04:17] [main/INFO] [FML]: Applying holder lookups
[15:04:17] [main/INFO] [FML]: Holder lookups applied
[15:04:17] [main/INFO] [FML]: Injecting itemstacks
[15:04:17] [main/INFO] [FML]: Itemstack injection complete
[15:04:17] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null
[15:04:32] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem...
[15:04:32] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL
[15:04:32] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[15:04:33] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized.
[15:04:33] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started
[15:05:03] [main/INFO] [FML]: Max texture size: 16384
[15:05:05] [main/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas
[15:05:10] [Thread-3/INFO] [STDOUT]: [gloomyfolken.hooklib.example.AnnotationHooks:resize:21]: Resize, x=854, y=480
[15:05:12] [main/INFO] [FML]: Applying holder lookups
[15:05:12] [main/INFO] [FML]: Holder lookups applied
[15:05:12] [main/INFO] [FML]: Injecting itemstacks
[15:05:12] [main/INFO] [FML]: Itemstack injection complete
[15:05:13] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[15:05:13] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[15:05:13] [Thread-3/INFO] [STDOUT]: [gloomyfolken.hooklib.example.AnnotationHooks:resize:21]: Resize, x=854, y=480
[15:05:13] [main/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded
[15:05:18] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id
[15:05:29] [Server thread/INFO] [minecraft/IntegratedServer]: Starting integrated minecraft server version 1.12.2
[15:05:29] [Server thread/INFO] [minecraft/IntegratedServer]: Generating keypair
[15:05:30] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance
[15:05:32] [Server thread/INFO] [FML]: Applying holder lookups
[15:05:32] [Server thread/INFO] [FML]: Holder lookups applied
[15:05:33] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@410c91e8)
[15:05:35] [Server thread/INFO] [minecraft/AdvancementList]: Loaded 488 advancements
[15:05:36] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@410c91e8)
[15:05:36] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@410c91e8)
[15:05:36] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for level 0
[15:05:37] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 4%
[15:05:37] [Server thread/WARN] [minecraft/WorldServer]: Keeping entity minecraft:pig that already exists with UUID a3db33ad-c607-4861-953f-f115dca5339c
[15:05:38] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 58%
[15:05:39] [Server thread/INFO] [FML]: Unloading dimension -1
[15:05:39] [Server thread/INFO] [FML]: Unloading dimension 1
[15:05:39] [Server thread/INFO] [minecraft/IntegratedServer]: Changing view distance to 4, from 10
[15:05:44] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[15:05:44] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[15:05:44] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]
[15:05:45] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[15:05:45] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[15:05:45] [Server thread/INFO] [minecraft/PlayerList]: Player976[local:E:1dbe5f2c] logged in with entity id 26 at (-1135.2762170134233, 4.0, -97.83053074049882)
[15:05:45] [Server thread/INFO] [minecraft/MinecraftServer]: Player976 присоединился к игре
[15:05:45] [Server thread/INFO] [minecraft/MinecraftServer]: Player976 получил достижение «[Осыпь меня алмазами]»
[15:05:47] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...
[15:05:47] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'New World'/overworld
[15:05:47] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 2945ms behind, skipping 58 tick(s)
[15:05:48] [main/INFO] [minecraft/GuiNewChat]: [CHAT] Player976 получил достижение «[Осыпь меня алмазами]»
[15:05:48] [main/INFO] [minecraft/AdvancementList]: Loaded 11 advancements
[15:05:51] [pool-2-thread-1/WARN] [mojang/YggdrasilMinecraftSessionService]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@11fe2ae2[id=6a350d2f-62d7-3aa3-951b-7fe208d8b2cb,name=Player976,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
    at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
    at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3181) [Minecraft.class:?]
    at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_201]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_201]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_201]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_201]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_201]
[15:05:51] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...
[15:05:52] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'New World'/overworld
 
Сверху