From 803402c4a9c237e722fb73e5aebcfeaa40f6191c Mon Sep 17 00:00:00 2001 From: "Mr. Jake" Date: Sun, 30 Jun 2019 15:44:51 +0200 Subject: [PATCH] Change modid from 'OpenComputers' to 'opencomputers' Camel case doesn't seem to work while all-lowercase does. --- src/main/java/li/cil/oc/api/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/li/cil/oc/api/README.md b/src/main/java/li/cil/oc/api/README.md index f6a454afa..2c9e23d9b 100644 --- a/src/main/java/li/cil/oc/api/README.md +++ b/src/main/java/li/cil/oc/api/README.md @@ -7,7 +7,7 @@ Making a tile entity available as a component / peripheral -------------------------------------------------- If you simply wish to expose a couple of methods that can be called from a computer if your tile entity's block is 'connected' to the computer, you can use the `SimpleComponent` interface. This interface serves as a marker for OpenComputers to know it has to inject code that converts your tile entity into a component using its class transformer. It is an interface instead of an annotation to allow stripping it, removing any dependencies on OpenComputers. Here is an example implementation: ```java -@Optional.Interface(iface = "li.cil.oc.api.network.SimpleComponent", modid = "OpenComputers") +@Optional.Interface(iface = "li.cil.oc.api.network.SimpleComponent", modid = "opencomputers") public class TileEntityMyFancyThing extends TileEntity implements SimpleComponent { @@ -17,7 +17,7 @@ public class TileEntityMyFancyThing extends TileEntity } @Callback - @Optional.Method(modid = "OpenComputers") + @Optional.Method(modid = "opencomputers") public Object[] greet(Context context, Arguments args) { return new Object[]{String.format("Hello, %s!", args.checkString(0))}; } @@ -82,4 +82,4 @@ public class TileEntityWithFileSystem extends TileEntityEnvironment { ``` -[integration]: https://github.com/MightyPirates/OpenComputers/tree/master-MC1.7.10/src/main/scala/li/cil/oc/integration \ No newline at end of file +[integration]: https://github.com/MightyPirates/OpenComputers/tree/master-MC1.7.10/src/main/scala/li/cil/oc/integration