blob: 39b16d88dd8635f625ff0d5b38a7e5f6702d82f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.keuin.ohmyvanillamc;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;
public class OhMyVanillaMinecraft implements ModInitializer {
private static final String MOD_ID = "ohmyvanillamc";
private static String version;
public static String getVersion() {
return version;
}
@Override
public void onInitialize() {
version = FabricLoader.getInstance().getModContainer(MOD_ID).orElseThrow(RuntimeException::new).getMetadata().getVersion().getFriendlyString();
OmvmExtension.initialize();
}
}
|