mirror of
https://github.com/zaaarf/lillero.git
synced 2024-11-22 15:34:49 +01:00
docs: indent more example
This commit is contained in:
parent
9f2777dedb
commit
ce19836886
1 changed files with 13 additions and 13 deletions
10
README.md
10
README.md
|
@ -22,9 +22,9 @@ To load patches created with this library, a Launch Plugin loader is necessary (
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// file src/main/java/example/patches/SamplePatch.java
|
// file src/main/java/example/patches/SamplePatch.java
|
||||||
package example.patches;
|
package example.patches;
|
||||||
import ftbsc.lll.IInjector;
|
import ftbsc.lll.IInjector;
|
||||||
public class SamplePatch implements IInjector {
|
public class SamplePatch implements IInjector {
|
||||||
public String name() { return "SamplePatch"; }
|
public String name() { return "SamplePatch"; }
|
||||||
public String targetClass() { return "net.minecraft.client.Minecraft"; }
|
public String targetClass() { return "net.minecraft.client.Minecraft"; }
|
||||||
public String methodName() { return "func_71407_l"; } // tick()
|
public String methodName() { return "func_71407_l"; } // tick()
|
||||||
|
@ -34,8 +34,8 @@ public class SamplePatch implements IInjector {
|
||||||
insnList.add(new InsnNode(POP));
|
insnList.add(new InsnNode(POP));
|
||||||
main.instructions.insert(insnList);
|
main.instructions.insert(insnList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// file src/main/resources/META-INF/services/ftbsc.lll.IInjector
|
// file src/main/resources/META-INF/services/ftbsc.lll.IInjector
|
||||||
example.patches.SamplePatch
|
example.patches.SamplePatch
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue