Hi. I'm making a peripheral for CC and i have a little problem with a canProvidePower() method. When i add this method to my block class, i can't attach modems to block. Without this method modems are working well and communication between block and computer is good too. With this method communication is good only if block is next to computer. Anyone knows what's the point?
0
[1.7.10][CC 1.6.5]New peripheral not compatible with modems
Started by FireHead996, Feb 04 2015 07:08 PM
5 replies to this topic
#1
Posted 04 February 2015 - 07:08 PM
#2
Posted 04 February 2015 - 07:51 PM
Please provide a link to your code repository or pastebin all relevant class files (your block, its TE, the IPeripheral, and the IPeripheralProvider. Please show both versions of the code, one where it works as you expect, and one with the additional method added that seems to be causing it to no longer work.
Moved to Peripheral Help & Discussion.
Moved to Peripheral Help & Discussion.
#3
Posted 04 February 2015 - 08:10 PM
Here:
Core: http://pastebin.com/LPWRkGwv
TileEntity: http://pastebin.com/iDfvFiNy
PeripheralProvider: http://pastebin.com/9awJvpau
Bugged block class: http://pastebin.com/tL1YYvPp
Working block class: http://pastebin.com/cDUwQSR5
Core: http://pastebin.com/LPWRkGwv
TileEntity: http://pastebin.com/iDfvFiNy
PeripheralProvider: http://pastebin.com/9awJvpau
Bugged block class: http://pastebin.com/tL1YYvPp
Working block class: http://pastebin.com/cDUwQSR5
Edited by FireHead996, 04 February 2015 - 08:10 PM.
#4
Posted 28 July 2015 - 01:58 PM
Anyone? I really don't know what is with it...
#5
Posted 28 July 2015 - 05:30 PM
My guess would be because it can provide power it is no longer a solid block - though I don't see why that would be the case. Have a look at ItemCable and insert some breakpoints there.
Edited by SquidDev, 28 July 2015 - 05:30 PM.
#6
Posted 29 July 2015 - 12:21 AM
SquidDev, on 28 July 2015 - 05:30 PM, said:
My guess would be because it can provide power it is no longer a solid block - though I don't see why that would be the case. Have a look at ItemCable and insert some breakpoints there.
Edited by FireHead996, 29 July 2015 - 12:22 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users