-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMainTest.java
More file actions
35 lines (30 loc) · 1.5 KB
/
MainTest.java
File metadata and controls
35 lines (30 loc) · 1.5 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
package net.modificationstation.sltest;
import net.fabricmc.api.ModInitializer;
import net.modificationstation.sltest.network.ExamplePayload;
import net.modificationstation.stationapi.api.registry.PayloadTypeRegistry;
import net.modificationstation.stationapi.api.registry.Registry;
public class MainTest implements ModInitializer {
@Override
public void onInitialize() {
// new Exception().printStackTrace();
Registry.register(PayloadTypeRegistry.INSTANCE, SLTest.NAMESPACE)
.accept("example_payload", ExamplePayload.TYPE);
}
// @EventListener
// public void onInitialize(TagRegisterEvent event) {
// SLTest.LOGGER.info("==================================================================================================");
// Identifier oreDictToTest = Identifier.of("items/tools/pickaxes/");
// SLTest.LOGGER.info(oreDictToTest);
// Optional<Map<Identifier, List<TagEntry>>> predicates = TagRegistry.INSTANCE.getWithIdentifiers(oreDictToTest);
// if (predicates.isPresent()) {
// for (Identifier oreDictEntryObject : predicates.get().keySet()) {
// SLTest.LOGGER.info(oreDictEntryObject);
// }
// }
// else {
// throw new RuntimeException("Predicates are empty for " + oreDictToTest);
// }
// SLTest.LOGGER.info("==================================================================================================");
// block.mineableByTool("pickaxe*", 0);
// }
}