mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Removed deprecated method from API.
This commit is contained in:
parent
2fd08248b4
commit
05c63c6a8d
@ -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.
|
||||
*/
|
||||
|
@ -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;
|
@ -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 ||
|
||||
|
@ -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()
|
||||
|
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user