IMinecraft.java
1004 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.mumfrey.liteloader.client.overlays;
import java.util.List;
import net.minecraft.client.resources.IResourcePack;
import net.minecraft.util.Timer;
/**
* Interface containing injected accessors for Minecraft
*
* @author Adam Mummery-Smith
*/
public interface IMinecraft
{
/**
* Get the timer instance
*/
public abstract Timer getTimer();
/**
* Get the "running" flag
*/
public abstract boolean isRunning();
/**
* Get the default resource packs set
*/
public abstract List<IResourcePack> getDefaultResourcePacks();
/**
* Get the current server address (from connection)
*/
public abstract String getServerName();
/**
* Get the current server port (from connection)
*/
public abstract int getServerPort();
/**
* Notify the client that the window was resized
*
* @param width
* @param height
*/
public abstract void onResizeWindow(int width, int height);
}