Topic category: Troubleshooting, bugs, and solutions
C:\MCreatorWorkspaces\xjxj\src\main\java\net\mcreator\xjxj\XjxjMod.java:44: Error: symbol not found
public static <T> void addNetworkMessage(Class<T> messageType, BiConsumer<T, FriendlyByteBuf> encoder, Function<FriendlyByteBuf, T> decoder, BiConsumer<T, Supplier<NetworkEvent.Context>> messageConsumer) {
^
Notation: class BiConsumer
location: Class XJXJMOD
C:\MCreatorWorkspaces\xjxj\src\main\java\net\mcreator\xjxj\XjxjMod.java:44: Error: symbol not found
public static <T> void addNetworkMessage(Class<T> messageType, BiConsumer<T, FriendlyByteBuf> encoder, Function<FriendlyByteBuf, T> decoder, BiConsumer<T, Supplier<NetworkEvent.Context>> messageConsumer) {
^
Notation: class Function
location: Class XJXJMOD
C:\MCreatorWorkspaces\xjxj\src\main\java\net\mcreator\xjxj\XjxjMod.java:44: Error: symbol not found
public static <T> void addNetworkMessage(Class<T> messageType, BiConsumer<T, FriendlyByteBuf> encoder, Function<FriendlyByteBuf, T> decoder, BiConsumer<T, Supplier<NetworkEvent.Context>> messageConsumer) {
^
Notation: class BiConsumer
location: Class XJXJMOD
C:\MCreatorWorkspaces\xjxj\src\main\java\net\mcreator\xjxj\XjxjMod.java:44: Error: symbol not found
public static <T> void addNetworkMessage(Class<T> messageType, BiConsumer<T, FriendlyByteBuf> encoder, Function<FriendlyByteBuf, T> decoder, BiConsumer<T, Supplier<NetworkEvent.Context>> messageConsumer) {
^
Notation: class Supplier
location: Class XJXJMOD
C:\MCreatorWorkspaces\xjxj\src\main\java\net\mcreator\xjxj\XjxjMod.java:59: Error: symbol not found
List<AbstractMap.SimpleEntry<Runnable, Integer>> actions = new ArrayList<>();
^
Symbol: class List
location: Class XJXJMOD
5 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 3s
After I updated my Mceator to version 2024.1, both the new and old workspaces became inaccessible to the game. I don't know anything about Java, so please tell me how to handle this, or I may not be able to continue using Mcreator.
Try clearing gradle cache and regenerating code as explained at https://mcreator.net/wiki/gradle-setup-errors
I tried to delete caches and gradle a while ago, but it&’s still the same, and it's the first time it’039;s been done in years