| 187 | import static java.lang.Math.round; |
| 188 | |
| 189 | public class Minecraft implements IThreadListener, IPlayerUsage |
| 190 | { |
| 191 | private static final Logger logger = LogManager.getLogger(); |
| 192 | private static final ResourceLocation locationMojangPng = new ResourceLocation("textures/gui/title/mojang.png"); |
| 193 | public static final boolean isRunningOnMac = Util.getOSType() == Util.EnumOS.OSX; |
| 194 | |
| 195 | /** A 10MiB preallocation to ensure the heap is reasonably sized. */ |
| 196 | public static byte[] memoryReserve = new byte[10485760]; |
| 197 | private static final List<DisplayMode> macDisplayModes = Lists.newArrayList(new DisplayMode(2560, 1600), new DisplayMode(2880, 1800)); |
| 198 | private final File fileResourcepacks; |
| 199 | private final PropertyMap field_181038_N; |
| 200 | private ServerData currentServerData; |
| 201 | |
| 202 | /** The RenderEngine instance used by Minecraft */ |
| 203 | private TextureManager renderEngine; |
| 204 | |
| 205 | /** |
| 206 | * Set to 'this' in Minecraft constructor; used by some settings get methods |
| 207 | */ |
| 208 | private static Minecraft theMinecraft; |
| 209 | public PlayerControllerMP playerController; |
| 210 | private boolean fullscreen; |
| 211 | private boolean enableGLErrorChecking = true; |
| 212 | private boolean hasCrashed; |
| 213 | |
| 214 | /** Instance of CrashReport. */ |
| 215 | private CrashReport crashReporter; |
| 216 | public int displayWidth; |
| 217 | public int displayHeight; |
| 218 | private boolean field_181541_X = false; |
| 219 | public Timer timer = new Timer(20.0F); |
| 220 | |
| 221 | /** Instance of PlayerUsageSnooper. */ |
| 222 | private PlayerUsageSnooper usageSnooper = new PlayerUsageSnooper("client", this, MinecraftServer.getCurrentTimeMillis()); |
| 223 | public WorldClient theWorld; |
| 224 | public RenderGlobal renderGlobal; |
| 225 | private RenderManager renderManager; |
| 226 | private RenderItem renderItem; |
| 227 | private ItemRenderer itemRenderer; |
| 228 | public EntityPlayerSP thePlayer; |
| 229 | private Entity renderViewEntity; |
| 230 | public Entity pointedEntity; |
| 231 | public EffectRenderer effectRenderer; |
| 232 | public Session session; |
| 233 | private boolean isGamePaused; |
| 234 | /** The font renderer used for displaying and measuring text */ |
| 235 | public FontRenderer MCfontRenderer; |
| 236 | public FontRenderer standardGalacticFontRenderer; |
| 237 | |
| 238 | /** The GuiScreen that's being displayed at the moment. */ |
| 239 | public GuiScreen currentScreen; |
| 240 | public LoadingScreenRenderer loadingScreen; |
| 241 | public EntityRenderer entityRenderer; |
| 242 | |
| 243 | /** Mouse left click counter */ |
| 244 | public int leftClickCounter; |
| 245 | |
| 246 | /** Display width */ |
nothing calls this directly
no test coverage detected