public class Minecraft extends java.lang.Object implements IThreadListener, ISnooperInfo
Constructor and Description |
---|
Minecraft(GameConfiguration gameConfig) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final ResourceLocation LOCATION_MOJANG_PNG
public static final boolean IS_RUNNING_ON_MAC
public static byte[] memoryReserve
private static final java.util.List<org.lwjgl.opengl.DisplayMode> MAC_DISPLAY_MODES
private final java.io.File fileResourcepacks
private final com.mojang.authlib.properties.PropertyMap twitchDetails
private final com.mojang.authlib.properties.PropertyMap profileProperties
private ServerData currentServerData
public TextureManager renderEngine
private static Minecraft instance
private final DataFixer dataFixer
public PlayerControllerMP playerController
private boolean fullscreen
private final boolean enableGLErrorChecking
private boolean hasCrashed
private CrashReport crashReporter
public int displayWidth
public int displayHeight
private boolean connectedToRealms
private final Timer timer
private final Snooper usageSnooper
public WorldClient world
public RenderGlobal renderGlobal
private RenderManager renderManager
private RenderItem renderItem
private ItemRenderer itemRenderer
public EntityPlayerSP player
@Nullable private Entity renderViewEntity
public Entity pointedEntity
public ParticleManager effectRenderer
private SearchTreeManager searchTreeManager
private final Session session
private boolean isGamePaused
private float renderPartialTicksPaused
public FontRenderer fontRenderer
public FontRenderer standardGalacticFontRenderer
@Nullable public GuiScreen currentScreen
public LoadingScreenRenderer loadingScreen
public EntityRenderer entityRenderer
public DebugRenderer debugRenderer
private int leftClickCounter
private final int tempDisplayWidth
private final int tempDisplayHeight
@Nullable private IntegratedServer integratedServer
public GuiIngame ingameGUI
public boolean skipRenderWorld
public RayTraceResult objectMouseOver
public GameSettings gameSettings
public CreativeSettings creativeSettings
public MouseHelper mouseHelper
public final java.io.File mcDataDir
private final java.io.File fileAssets
private final java.lang.String launchedVersion
private final java.lang.String versionType
private final java.net.Proxy proxy
private ISaveFormat saveLoader
private static int debugFPS
private int rightClickDelayTimer
private java.lang.String serverName
private int serverPort
public boolean inGameHasFocus
long systemTime
private int joinPlayerCounter
public final FrameTimer frameTimer
long startNanoTime
private final boolean jvm64bit
private final boolean isDemo
@Nullable private NetworkManager myNetworkManager
private boolean integratedServerIsRunning
public final Profiler mcProfiler
private long debugCrashKeyPressTime
private IReloadableResourceManager mcResourceManager
private final MetadataSerializer metadataSerializer_
private final java.util.List<IResourcePack> defaultResourcePacks
public final DefaultResourcePack mcDefaultResourcePack
private ResourcePackRepository mcResourcePackRepository
private LanguageManager mcLanguageManager
private BlockColors blockColors
private ItemColors itemColors
private Framebuffer framebufferMc
private TextureMap textureMapBlocks
private SoundHandler mcSoundHandler
private MusicTicker mcMusicTicker
private ResourceLocation mojangLogo
private final com.mojang.authlib.minecraft.MinecraftSessionService sessionService
private SkinManager skinManager
private final java.util.Queue<java.util.concurrent.FutureTask<?>> scheduledTasks
private final java.lang.Thread mcThread
private ModelManager modelManager
private BlockRendererDispatcher blockRenderDispatcher
private final GuiToast toastGui
volatile boolean running
public java.lang.String debug
public boolean renderChunksMany
private long debugUpdateTime
private int fpsCounter
private boolean actionKeyF3
private final Tutorial tutorial
long prevFrameTime
private java.lang.String debugProfilerName
public Minecraft(GameConfiguration gameConfig)
public void run()
private void init() throws org.lwjgl.LWJGLException, java.io.IOException
org.lwjgl.LWJGLException
java.io.IOException
public void populateSearchTreeManager()
private void registerMetadataSerializers()
private void createDisplay() throws org.lwjgl.LWJGLException
org.lwjgl.LWJGLException
private void setInitialDisplayMode() throws org.lwjgl.LWJGLException
org.lwjgl.LWJGLException
private void setWindowIcon()
private static boolean isJvm64bit()
public Framebuffer getFramebuffer()
public java.lang.String getVersion()
public java.lang.String getVersionType()
private void startTimerHackThread()
public void crashed(CrashReport crash)
public void displayCrashReport(CrashReport crashReportIn)
public boolean isUnicode()
@Deprecated public void refreshResources()
private java.nio.ByteBuffer readImageToBuffer(java.io.InputStream imageStream) throws java.io.IOException
java.io.IOException
private void updateDisplayMode() throws org.lwjgl.LWJGLException
org.lwjgl.LWJGLException
public void drawSplashScreen(TextureManager textureManagerInstance) throws org.lwjgl.LWJGLException
org.lwjgl.LWJGLException
public void draw(int posX, int posY, int texU, int texV, int width, int height, int red, int green, int blue, int alpha)
public ISaveFormat getSaveLoader()
public void displayGuiScreen(@Nullable GuiScreen guiScreenIn)
private void checkGLError(java.lang.String message)
public void shutdownMinecraftApplet()
private void runGameLoop() throws java.io.IOException
java.io.IOException
public void updateDisplay()
protected void checkWindowResize()
public int getLimitFramerate()
public boolean isFramerateLimitBelowMax()
public void freeMemory()
private void updateDebugProfilerName(int keyCount)
private void displayDebugInfo(long elapsedTicksTime)
public void shutdown()
public void setIngameFocus()
public void setIngameNotInFocus()
public void displayInGameMenu()
private void sendClickBlockToController(boolean leftClick)
private void clickMouse()
private void rightClickMouse()
public void toggleFullscreen()
public void resize(int width, int height)
private void updateFramebufferSize()
public MusicTicker getMusicTicker()
public void runTick() throws java.io.IOException
java.io.IOException
private void runTickKeyboard() throws java.io.IOException
java.io.IOException
private boolean processKeyF3(int auxKey)
private void processKeyBinds()
private void runTickMouse() throws java.io.IOException
java.io.IOException
private void debugFeedbackTranslated(java.lang.String untranslatedTemplate, java.lang.Object... objs)
public void launchIntegratedServer(java.lang.String folderName, java.lang.String worldName, @Nullable WorldSettings worldSettingsIn)
public void loadWorld(@Nullable WorldClient worldClientIn)
public void loadWorld(@Nullable WorldClient worldClientIn, java.lang.String loadingMessage)
public void setDimensionAndSpawnPlayer(int dimension)
public final boolean isDemo()
@Nullable public NetHandlerPlayClient getConnection()
public static boolean isGuiEnabled()
public static boolean isFancyGraphicsEnabled()
public static boolean isAmbientOcclusionEnabled()
private void middleClickMouse()
public ItemStack storeTEInStack(ItemStack stack, TileEntity te)
public CrashReport addGraphicsAndWorldToCrashReport(CrashReport theCrash)
public static Minecraft getMinecraft()
@Deprecated public com.google.common.util.concurrent.ListenableFuture<java.lang.Object> scheduleResourcesRefresh()
public void addServerStatsToSnooper(Snooper playerSnooper)
addServerStatsToSnooper
in interface ISnooperInfo
private java.lang.String getCurrentAction()
public void addServerTypeToSnooper(Snooper playerSnooper)
addServerTypeToSnooper
in interface ISnooperInfo
public static int getGLMaximumTextureSize()
public boolean isSnooperEnabled()
isSnooperEnabled
in interface ISnooperInfo
public void setServerData(ServerData serverDataIn)
@Nullable public ServerData getCurrentServerData()
public boolean isIntegratedServerRunning()
public boolean isSingleplayer()
@Nullable public IntegratedServer getIntegratedServer()
public static void stopIntegratedServer()
public Snooper getPlayerUsageSnooper()
public static long getSystemTime()
public boolean isFullScreen()
public Session getSession()
public com.mojang.authlib.properties.PropertyMap getProfileProperties()
public java.net.Proxy getProxy()
public TextureManager getTextureManager()
public IResourceManager getResourceManager()
public ResourcePackRepository getResourcePackRepository()
public LanguageManager getLanguageManager()
public TextureMap getTextureMapBlocks()
public boolean isJava64bit()
public boolean isGamePaused()
public SoundHandler getSoundHandler()
public MusicTicker.MusicType getAmbientMusicType()
public void dispatchKeypresses()
public com.mojang.authlib.minecraft.MinecraftSessionService getSessionService()
public SkinManager getSkinManager()
@Nullable public Entity getRenderViewEntity()
public void setRenderViewEntity(Entity viewingEntity)
public <V> com.google.common.util.concurrent.ListenableFuture<V> addScheduledTask(java.util.concurrent.Callable<V> callableToSchedule)
public com.google.common.util.concurrent.ListenableFuture<java.lang.Object> addScheduledTask(java.lang.Runnable runnableToSchedule)
addScheduledTask
in interface IThreadListener
public boolean isCallingFromMinecraftThread()
isCallingFromMinecraftThread
in interface IThreadListener
public BlockRendererDispatcher getBlockRendererDispatcher()
public RenderManager getRenderManager()
public RenderItem getRenderItem()
public ItemRenderer getItemRenderer()
public <T> ISearchTree<T> getSearchTree(SearchTreeManager.Key<T> key)
public static int getDebugFPS()
public FrameTimer getFrameTimer()
public boolean isConnectedToRealms()
public void setConnectedToRealms(boolean isConnected)
public DataFixer getDataFixer()
public float getRenderPartialTicks()
public float getTickLength()
public BlockColors getBlockColors()
public ItemColors getItemColors()
public boolean isReducedDebug()
public GuiToast getToastGui()
public Tutorial getTutorial()
public SearchTreeManager getSearchTreeManager()