Guest User

Mcreator Crash custom arrow error

a guest
Jul 20th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. > Task :compileJava FAILED
  2. C:\Users\louis\MCreatorWorkspaces\the_frozen_kingdom\src\main\java\net\mcreator\thefrozenkingdom\init\TheFrozenKingdomModItems.java:76: error: incompatible types: invalid constructor reference
  3. public static final DeferredItem<Item> CLAW_ARROWW = register("claw_arroww", ClawArrowwItem::new);
  4. ^
  5. constructor ClawArrowwItem in class ClawArrowwItem cannot be applied to given types
  6. required: no arguments
  7. found: Properties
  8. reason: actual and formal argument lists differ in length
  9. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
  10. 1 error
  11. FAILURE: Build failed with an exception.
  12. * What went wrong:
  13. Execution failed for task ':compileJava'.
  14. > Compilation failed; see the compiler output below.
  15. Note: Recompile with -Xlint:deprecation for details.
  16. C:\Users\louis\MCreatorWorkspaces\the_frozen_kingdom\src\main\java\net\mcreator\thefrozenkingdom\init\TheFrozenKingdomModItems.java:76: error: incompatible types: invalid constructor reference
  17. public static final DeferredItem<Item> CLAW_ARROWW = register("claw_arroww", ClawArrowwItem::new);
  18. ^
  19. constructor ClawArrowwItem in class ClawArrowwItem cannot be applied to given types
  20. required: no arguments
  21. found: Properties
  22. reason: actual and formal argument lists differ in length
  23. Note: Recompile with -Xlint:unchecked for details.
  24. Note: Some input files use or override a deprecated API.
  25. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
  26. 1 error
  27. * Try:
  28. > Check your code and dependencies to fix the compilation error(s)
  29. > Run with --scan to get full insights.
  30. BUILD FAILED in 1s
  31. 6 actionable tasks: 1 executed, 5 up-to-date
  32. Configuration cache entry reused
Advertisement
Add Comment
Please, Sign In to add comment