-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathExampleModBuffs.java
More file actions
28 lines (20 loc) · 989 Bytes
/
Copy pathExampleModBuffs.java
File metadata and controls
28 lines (20 loc) · 989 Bytes
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
package examplemod.Loaders;
import examplemod.examples.buffs.ExampleArmorSetBuff;
import examplemod.examples.buffs.ExampleArrowBuff;
import examplemod.examples.buffs.ExampleBuff;
import examplemod.examples.buffs.ExampleTrinketBuff;
import necesse.engine.registries.BuffRegistry;
public class ExampleModBuffs {
// We store our example arrow buff variable for later use
public static ExampleArrowBuff EXAMPLE_ARROW_BUFF;
public static void load() {
// Register our buff
BuffRegistry.registerBuff("examplebuff", new ExampleBuff());
// Register our armor set bonus, used in ExampleHelmetArmorItem
BuffRegistry.registerBuff("examplearmorsetbonusbuff", new ExampleArmorSetBuff());
// Register our Arrow Buff
EXAMPLE_ARROW_BUFF = BuffRegistry.registerBuff("examplearrowbuff", new ExampleArrowBuff());
// Register our Trinket Buff
BuffRegistry.registerBuff("exampletrinketbuff",new ExampleTrinketBuff());
}
}