Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Was following this series of tutorials, was going to make a Block Entity for my mod by copying the code off the tutorial and then changing the names (like i had done for the rest of my mod so far) i then got an error. Link to the tutorial in question Here. Error(s):

 

Error 1:

MinerMod\src\main\java\com\bccprograming\minermod\init\BlockEntityInit.java:19: error: incompatible types: invalid constructor reference
() -> BlockEntityType.Builder.of(DrillBlock::new, BlockInit.MINERARIUMDRILLER.get()).build(null));
^
constructor DrillBlock in class DrillBlock cannot be applied to given types
required: Properties
found: BlockPos,BlockState
reason: actual and formal argument lists differ in length

 

Error 2:

MinerMod\src\main\java\com\bccprograming\minermod\init\BlockEntityInit.java:19: error: incompatible types: cannot infer type-variable(s) T
() -> BlockEntityType.Builder.of(DrillBlock::new, BlockInit.MINERARIUMDRILLER.get()).build(null));
^
(argument mismatch; invalid constructor reference
constructor DrillBlock in class DrillBlock cannot be applied to given types
required: Properties
found: BlockPos,BlockState
reason: actual and formal argument lists differ in length)
where T is a type-variable:
T extends BlockEntity declared in method <T>of(BlockEntitySupplier<? extends T>,Block...)

 

I will not specify where the MinerMod directory is, but it is a copy of the latest 1.18.2 FORGE MDK, just renamed.

Code is available on request.

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.