-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuartzMod_ExampleMod.java
More file actions
49 lines (44 loc) · 1.32 KB
/
QuartzMod_ExampleMod.java
File metadata and controls
49 lines (44 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package net.minecraft.src;
/**
* This is a simple example for making mods for QuartzAPI.
* Mod to be recognized by QuartzAPI loader must be starting from QuartzMod_
*
* @author Eliza "sech1p" Semeniuk
*/
public class QuartzMod_Example extends QuartzMod {
/**
* Constructor of mod
* @param modName Name of the modification
* @param modAuthor Author of the modification
* @param modVersion Version of the modification
*/
public QuartzMod_Example() {
super("Example", "Eliza 'sech1p' Semeniuk", "0.0");
}
/**
* Initialize function, you can for e.g. registers block here.
*/
@Override
public void init() {
// In game console you should saw this sentence, it's means that mod works. :)
System.out.println("Mod started successfully");
super.init();
}
/**
* Function called when you started playing world in Minecraft.
* For e.g. you can write on chat something like thanks for installing mod or other informations about mod.
*/
@Override
public void onWorldStart() {
this.DisplayChatLine("Hewwo, world!~");
super.onWorldStart();
}
/**
* Update function, it's main loop of mod which is runned constantly during the game,
* You can manipulate terrain generator or doing rest of things here which depends on constantly updating.
*/
@Override
public void update() {
super.update();
}
}