Advertisement
Guest User

Untitled

a guest
Feb 28th, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.32 KB | None | 0 0
  1. To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
  2. Daemon will be stopped at the end of the build
  3.  
  4. > Configure project :
  5. Java: 17.0.6, JVM: 17.0.6+9-LTS-190 (Oracle Corporation), Arch: amd64
  6. WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
  7. WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here. Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.
  8.  
  9. > Task :compileJava
  10. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:4: error: package net.minecraft.client does not exist
  11. import net.minecraft.client.Minecraft;
  12. ^
  13. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:5: error: cannot find symbol
  14. import net.minecraft.world.item.BlockItem;
  15. ^
  16. symbol: class BlockItem
  17. location: package net.minecraft.world.item
  18. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:7: error: cannot find symbol
  19. import net.minecraft.world.item.Item;
  20. ^
  21. symbol: class Item
  22. location: package net.minecraft.world.item
  23. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:8: error: cannot find symbol
  24. import net.minecraft.world.level.block.Block;
  25. ^
  26. symbol: class Block
  27. location: package net.minecraft.world.level.block
  28. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:10: error: package net.minecraft.world.level.block.state does not exist
  29. import net.minecraft.world.level.block.state.BlockBehaviour;
  30. ^
  31. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:11: error: cannot find symbol
  32. import net.minecraft.world.level.material.Material;
  33. ^
  34. symbol: class Material
  35. location: package net.minecraft.world.level.material
  36. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:36: error: cannot find symbol
  37. public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
  38. ^
  39. symbol: class Block
  40. location: class ExampleMod
  41. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:38: error: cannot find symbol
  42. public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID);
  43. ^
  44. symbol: class Item
  45. location: class ExampleMod
  46. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:41: error: cannot find symbol
  47. public static final RegistryObject<Block> EXAMPLE_BLOCK = BLOCKS.register("example_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
  48. ^
  49. symbol: class Block
  50. location: class ExampleMod
  51. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:43: error: cannot find symbol
  52. public static final RegistryObject<Item> EXAMPLE_BLOCK_ITEM = ITEMS.register("example_block", () -> new BlockItem(EXAMPLE_BLOCK.get(), new Item.Properties()));
  53. ^
  54. symbol: class Item
  55. location: class ExampleMod
  56. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:36: error: cannot access IForgeRegistry
  57. public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
  58. ^
  59. class file for net.minecraftforge.registries.IForgeRegistry not found
  60. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:36: error: cannot access ResourceKey
  61. public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
  62. ^
  63. class file for net.minecraft.resources.ResourceKey not found
  64. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:38: error: cannot access ResourceLocation
  65. public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID);
  66. ^
  67. class file for net.minecraft.resources.ResourceLocation not found
  68. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:41: error: cannot find symbol
  69. public static final RegistryObject<Block> EXAMPLE_BLOCK = BLOCKS.register("example_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
  70. ^
  71. symbol: class Block
  72. location: class ExampleMod
  73. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:41: error: cannot find symbol
  74. public static final RegistryObject<Block> EXAMPLE_BLOCK = BLOCKS.register("example_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
  75. ^
  76. symbol: variable Material
  77. location: class ExampleMod
  78. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:41: error: package BlockBehaviour does not exist
  79. public static final RegistryObject<Block> EXAMPLE_BLOCK = BLOCKS.register("example_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
  80. ^
  81. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:43: error: cannot find symbol
  82. public static final RegistryObject<Item> EXAMPLE_BLOCK_ITEM = ITEMS.register("example_block", () -> new BlockItem(EXAMPLE_BLOCK.get(), new Item.Properties()));
  83. ^
  84. symbol: class BlockItem
  85. location: class ExampleMod
  86. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:43: error: package Item does not exist
  87. public static final RegistryObject<Item> EXAMPLE_BLOCK_ITEM = ITEMS.register("example_block", () -> new BlockItem(EXAMPLE_BLOCK.get(), new Item.Properties()));
  88. ^
  89. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:61: error: cannot access CreativeModeTab
  90. modEventBus.addListener(this::addCreative);
  91. ^
  92. class file for net.minecraft.world.item.CreativeModeTab not found
  93. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:68: error: cannot access Block
  94. LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
  95. ^
  96. class file for net.minecraft.world.level.block.Block not found
  97. *directory*\src\main\java\com\example\examplemod\ExampleMod.java:94: error: cannot find symbol
  98. LOGGER.info("MINECRAFT NAME >> {}", Minecraft.getInstance().getUser().getName());
  99. ^
  100. symbol: variable Minecraft
  101. location: class ClientModEvents
  102. 21 errors
  103.  
  104. > Task :compileJava FAILED
  105.  
  106. FAILURE: Build completed with 2 failures.
  107.  
  108. 1: Task failed with an exception.
  109. -----------
  110. * What went wrong:
  111. Execution failed for task ':compileJava'.
  112. > Compilation failed; see the compiler error output for details.
  113.  
  114. * Try:
  115. > Run with --stacktrace option to get the stack trace.
  116. > Run with --info or --debug option to get more log output.
  117. > Run with --scan to get full insights.
  118. ==============================================================================
  119.  
  120. 2: Task failed with an exception.
  121. -----------
  122. * What went wrong:
  123. java.lang.StackOverflowError (no error message)
  124.  
  125. * Try:
  126. > Run with --stacktrace option to get the stack trace.
  127. > Run with --info or --debug option to get more log output.
  128. > Run with --scan to get full insights.
  129. ==============================================================================
  130.  
  131. * Get more help at https://help.gradle.org
  132.  
  133. Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
  134.  
  135. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
  136.  
  137. See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
  138.  
  139. BUILD FAILED in 16s
  140. 1 actionable task: 1 executed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement