Split out identifier for devices into separate sub-interface.

It's only needed at bus level so we can wrap at that point.
This commit is contained in:
Florian Nücke
2020-11-29 13:36:34 +01:00
parent 49160acf6d
commit fd70381f31
12 changed files with 138 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
package li.cil.oc2.api.bus;
import li.cil.oc2.api.device.Device;
import li.cil.oc2.api.device.IdentifiableDevice;
import javax.annotation.Nullable;
import java.util.Collection;
@@ -48,5 +48,5 @@ public interface DeviceBusElement extends DeviceBus {
*
* @return the devices that have been added to this element.
*/
Collection<Device> getLocalDevices();
Collection<IdentifiableDevice> getLocalDevices();
}