Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- Daemon will be stopped at the end of the build
- > Configure project :
- Java: 17.0.6, JVM: 17.0.6+9-LTS-190 (Oracle Corporation), Arch: amd64
- 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
- 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.
- > Task :compileJava
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:4: error: package net.minecraft.client does not exist
- import net.minecraft.client.Minecraft;
- ^
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:5: error: cannot find symbol
- import net.minecraft.world.item.BlockItem;
- ^
- symbol: class BlockItem
- location: package net.minecraft.world.item
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:7: error: cannot find symbol
- import net.minecraft.world.item.Item;
- ^
- symbol: class Item
- location: package net.minecraft.world.item
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:8: error: cannot find symbol
- import net.minecraft.world.level.block.Block;
- ^
- symbol: class Block
- location: package net.minecraft.world.level.block
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:10: error: package net.minecraft.world.level.block.state does not exist
- import net.minecraft.world.level.block.state.BlockBehaviour;
- ^
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:11: error: cannot find symbol
- import net.minecraft.world.level.material.Material;
- ^
- symbol: class Material
- location: package net.minecraft.world.level.material
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:36: error: cannot find symbol
- public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
- ^
- symbol: class Block
- location: class ExampleMod
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:38: error: cannot find symbol
- public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID);
- ^
- symbol: class Item
- location: class ExampleMod
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:41: error: cannot find symbol
- public static final RegistryObject<Block> EXAMPLE_BLOCK = BLOCKS.register("example_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
- ^
- symbol: class Block
- location: class ExampleMod
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:43: error: cannot find symbol
- public static final RegistryObject<Item> EXAMPLE_BLOCK_ITEM = ITEMS.register("example_block", () -> new BlockItem(EXAMPLE_BLOCK.get(), new Item.Properties()));
- ^
- symbol: class Item
- location: class ExampleMod
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:36: error: cannot access IForgeRegistry
- public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
- ^
- class file for net.minecraftforge.registries.IForgeRegistry not found
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:36: error: cannot access ResourceKey
- public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
- ^
- class file for net.minecraft.resources.ResourceKey not found
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:38: error: cannot access ResourceLocation
- public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID);
- ^
- class file for net.minecraft.resources.ResourceLocation not found
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:41: error: cannot find symbol
- public static final RegistryObject<Block> EXAMPLE_BLOCK = BLOCKS.register("example_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
- ^
- symbol: class Block
- location: class ExampleMod
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:41: error: cannot find symbol
- public static final RegistryObject<Block> EXAMPLE_BLOCK = BLOCKS.register("example_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
- ^
- symbol: variable Material
- location: class ExampleMod
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:41: error: package BlockBehaviour does not exist
- public static final RegistryObject<Block> EXAMPLE_BLOCK = BLOCKS.register("example_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE)));
- ^
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:43: error: cannot find symbol
- public static final RegistryObject<Item> EXAMPLE_BLOCK_ITEM = ITEMS.register("example_block", () -> new BlockItem(EXAMPLE_BLOCK.get(), new Item.Properties()));
- ^
- symbol: class BlockItem
- location: class ExampleMod
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:43: error: package Item does not exist
- public static final RegistryObject<Item> EXAMPLE_BLOCK_ITEM = ITEMS.register("example_block", () -> new BlockItem(EXAMPLE_BLOCK.get(), new Item.Properties()));
- ^
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:61: error: cannot access CreativeModeTab
- modEventBus.addListener(this::addCreative);
- ^
- class file for net.minecraft.world.item.CreativeModeTab not found
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:68: error: cannot access Block
- LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
- ^
- class file for net.minecraft.world.level.block.Block not found
- *directory*\src\main\java\com\example\examplemod\ExampleMod.java:94: error: cannot find symbol
- LOGGER.info("MINECRAFT NAME >> {}", Minecraft.getInstance().getUser().getName());
- ^
- symbol: variable Minecraft
- location: class ClientModEvents
- 21 errors
- > Task :compileJava FAILED
- FAILURE: Build completed with 2 failures.
- 1: Task failed with an exception.
- -----------
- * What went wrong:
- Execution failed for task ':compileJava'.
- > Compilation failed; see the compiler error output for details.
- * Try:
- > Run with --stacktrace option to get the stack trace.
- > Run with --info or --debug option to get more log output.
- > Run with --scan to get full insights.
- ==============================================================================
- 2: Task failed with an exception.
- -----------
- * What went wrong:
- java.lang.StackOverflowError (no error message)
- * Try:
- > Run with --stacktrace option to get the stack trace.
- > Run with --info or --debug option to get more log output.
- > Run with --scan to get full insights.
- ==============================================================================
- * Get more help at https://help.gradle.org
- Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
- You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
- See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
- BUILD FAILED in 16s
- 1 actionable task: 1 executed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement