Removed deprecated method from API.

This commit is contained in:
Florian Nücke 2014-04-27 19:09:11 +02:00
parent 2fd08248b4
commit 05c63c6a8d
5 changed files with 1 additions and 15 deletions

View File

@ -5,14 +5,6 @@ package li.cil.oc.api.network;
* computer from which the callback was called.
*/
public interface Context {
/**
* The network address of the computer.
*
* @deprecated Use <tt>node().address()</tt> instead.
*/
@Deprecated
String address();
/**
* The node through which the computer is attached to the component network.
*/

View File

@ -37,5 +37,5 @@
@cpw.mods.fml.common.API(
owner = "OpenComputers|Core",
provides = "OpenComputersAPI",
apiVersion = "1.4.14")
apiVersion = "1.5.0")
package li.cil.oc.api;

View File

@ -41,8 +41,6 @@ trait Computer extends Environment with ComponentInventory with Rotatable with B
// Note: we implement IContext in the TE to allow external components to cast
// their owner to it (to allow interacting with their owning computer).
override def address = computer.address
override def canInteract(player: String) =
if (isServer) computer.canInteract(player)
else !Settings.get.canComputersBeOwned ||

View File

@ -26,8 +26,6 @@ class Server(val rack: tileentity.Rack, val number: Int) extends Owner {
// ----------------------------------------------------------------------- //
override def address = machine.node.address
override def node = machine.node
override def start() = machine.start()

View File

@ -95,8 +95,6 @@ class Machine(val owner: Owner, val rom: Option[ManagedEnvironment], constructor
// ----------------------------------------------------------------------- //
override def address = node.address
override def canInteract(player: String) = !Settings.get.canComputersBeOwned ||
_users.synchronized(_users.isEmpty || _users.contains(player)) ||
MinecraftServer.getServer.isSinglePlayer ||