Jump to content

Scala and the BuildCraft API


Emasher

Recommended Posts

Recently I've begun writing several components of my mods in Scala rather than Java. In the past, I've managed to get everything to compile fine using Eclipse, however, when I try to use either MCP's compile script or compile everything in IntelliJ, I get the following errors:

 

value PowerReceiver is not a member of object buildcraft.api.power.PowerHandler
import buildcraft.api.power.PowerHandler.PowerReceiver;
       ^

not found: type PowerReceiver
public PowerReceiver getPowerReceiver(ForgeDirection side);
       ^

 

Now, obviously the code itself is correct, and this particular code has nothing to do with Scala, but as soon as there are Scala files in the project, this error appears.

 

Excluding the BuildCraft Power API isn't an option as my mod relies on it for the moment.

 

If anyone knows what's causing this issue or knows how to fix it, any insight would be greatly appreciated.

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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