-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGetLitLaunchFields.txt
More file actions
85 lines (66 loc) · 2.06 KB
/
GetLitLaunchFields.txt
File metadata and controls
85 lines (66 loc) · 2.06 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* Copyright (c) Codetoil 2022
*/
package io.github.codetoil.litlaunch.minecraft;
import io.github.codetoil.litlaunch.api.*;
import io.github.codetoil.litlaunch.api.litlaunch.ICommonProxy;
import io.github.codetoil.litlaunch.api.mods.IGetLitLaunchFields;
import io.github.codetoil.litlaunch.api.server.IMinecraftServer;
import io.github.codetoil.litlaunch.event.LitEventHandler;
import io.github.codetoil.litlaunch.modloader.LitClassLoader;
import io.github.codetoil.litlaunch.modloader.ModFinder;
import java.util.List;
/**
* The front end of LitLaunch, allows to access to the api from a single class
*/
public class GetLitLaunchFields implements IGetLitLaunchFields
{
public String litlaunchVersion() {
return LitLaunch.VERSION;
}
public String litlaunchMod() {
return LitLaunch.MODID;
}
public ChainableMap<String, Object> emptyChainableMap() {
return LitLaunch.EMPTY;
}
public String minecraftVersion() {
return LitLaunch.getGetFields().minecraftVersion();
}
public ICommonProxy activeProxy() {
return LitLaunch.getCCproxy();
}
public IMinecraftServer getFields() {
return LitLaunch.getGetFields();
}
public PreformMinecraftAction doThingObject() {
return LitLaunch.getDoThing();
}
public boolean isVerbose() {
return LitLaunch.isVerbose();
}
public double timeFrame() {
return LitLaunch.getTimeInit();
}
public Command.Side getSide() {
return LitLaunch.getSide();
}
public List<Class<?>> modsLoaded() {
return ModFinder.validMods;
}
public LitClassLoader classLoader() {
return ModFinder.litClassLoader;
}
public LitEventHandler commonEventHandler() {
return LitEventHandler.COMMON;
}
public LitEventHandler clientEventHandler() {
return LitEventHandler.CLIENT;
}
public LitEventHandler serverEventHandler() {
return LitEventHandler.SERVER;
}
public double timeSinceBootstrap() {
return LitLaunch.getTimeInSeconds();
}
}