Jump to content




ITurtlePeripheral removed from CC 1.48?



  • You cannot reply to this topic
6 replies to this topic

#1 coranos

  • Members
  • 36 posts

Posted 25 December 2012 - 04:48 PM

I just tried to run CC 1.4.8 and I see this class was removed:
dan200.turtle.api.ITurtlePeripheral;

I used the update() to do work inside my peripheral, why was it removed?

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 25 December 2012 - 05:21 PM

Moved.

#3 GopherAtl

  • Members
  • 888 posts

Posted 25 December 2012 - 06:54 PM

from looking at the new API, it looks like you would just implement your IHostedPeripheral, which extends IPeripheral and which has an update method, and ITurtleUpgrade, which has methods to return the IHostedPeripheral.

#4 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 25 December 2012 - 09:15 PM

Yeah, use some common sense when looking at the new API download - it is obvious we haven't removed it, as turtles still have peripherals :P

#5 coranos

  • Members
  • 36 posts

Posted 26 December 2012 - 06:20 AM

Common sense would put the removal in a change log, or add @deprecated so peripheral developers would get a warning rather than a hard compiler error.

The API also doesn't match the way mcp 725 decompiles the classes. (NBTTagCompound is in net.minecraft.src, not net.minecraft.nbt).

I'm not complaining, just documenting for the next guy that gets confused.

If it was obvious, I wouldn't have asked :)

#6 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 26 December 2012 - 04:36 PM

View Postcoranos, on 26 December 2012 - 06:20 AM, said:

The API also doesn't match the way mcp 725 decompiles the classes. (NBTTagCompound is in net.minecraft.src, not net.minecraft.nbt).
It's actually a Forge change, not an MCP change.
If you use BON instead of the API download, you'll always get the latest API and names that match everything else.

#7 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 27 December 2012 - 08:43 AM

View Postcoranos, on 26 December 2012 - 06:20 AM, said:

Common sense would put the removal in a change log, or add @deprecated so peripheral developers would get a warning rather than a hard compiler error.

The API also doesn't match the way mcp 725 decompiles the classes. (NBTTagCompound is in net.minecraft.src, not net.minecraft.nbt).

I'm not complaining, just documenting for the next guy that gets confused.

If it was obvious, I wouldn't have asked :)

We thought the updated API would have been enough. However we will remember for the future.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users