Open rndtrash opened 3 years ago
Hmm, this is probably because I'm using the UShort
(unsigned short) type in the interface instead of normal Short. I'll have to change that, then. Either way, this API isn't entirely functional yet.
Hmm, this is probably because I'm using the UShort (unsigned short) type in the interface instead of normal Short.
What's interesting though is that getBundledOutput
which returns UShort
is correctly processed by decompiler, and IDEA even allows me to override that method. :confused:
Either way, this API isn't entirely functional yet.
Understood, I hope this API will be finished soon because I want to use those neat bundled cables with TIS 3D and it looks like your mod is the only mod for Fabric that has wires :smiley:
This is definitely something I'll have to fix before I can release RetroComputers as well, but I've kinda designed myself into a corner regarding specifically this API so I haven't worked on this in a while. We'll see, I definitely want to correct this at some point.
IDE: Intellij IDEA Community 2021.1 EAP (from snap) OS: Ubuntu JDK: 11 HCTM-base version: Any? (I tried versions 3.1.0 - 3.5.1) No matter what I tried, I am unable to implement
onBundledInputChange
method of BlockBundledCableIo interface in my Java project. IDEA's "Decompile to Java" produced this:When trying to generate method override (notice a dash in function name):
IDEA throws this error:
Caused by: java.lang.AssertionError: Unexpected token: '-'
- it looks like that dash is illegal in function name, but where did it appear from? I also tried to manually write override foronBundledInputChange_zV4tSj4
, but compiler said that there's nothing to override with that name.Can you help me? Please? :(