MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / runTick

Method runTick

src/main/java/net/minecraft/client/Minecraft.java:1751–2302  ·  view source on GitHub ↗

Runs the current tick.

()

Source from the content-addressed store, hash-verified

1749 * Runs the current tick.
1750 */
1751 public void runTick() throws IOException
1752 {
1753
1754 TickEvent tickEvent = new TickEvent();
1755 if(thePlayer != null && theWorld != null)
1756 tickEvent.call();
1757
1758 if (tickEvent.isCanceled()) {
1759 return;
1760 }
1761
1762 if (this.rightClickDelayTimer > 0)
1763 {
1764 --this.rightClickDelayTimer;
1765 }
1766
1767 this.mcProfiler.startSection("gui");
1768
1769 if (!this.isGamePaused)
1770 {
1771 this.ingameGUI.updateTick();
1772 }
1773
1774 this.mcProfiler.endSection();
1775 this.entityRenderer.getMouseOver(1.0F);
1776 this.mcProfiler.startSection("gameMode");
1777
1778 if (!this.isGamePaused && this.theWorld != null)
1779 {
1780 this.playerController.updateController();
1781 RotationUtil.updateStrafeFixBinds();
1782 }
1783
1784 this.mcProfiler.endStartSection("textures");
1785
1786 if (!this.isGamePaused)
1787 {
1788 this.renderEngine.tick();
1789 }
1790
1791 if (this.currentScreen == null && this.thePlayer != null)
1792 {
1793 if (this.thePlayer.getHealth() <= 0.0F)
1794 {
1795 this.displayGuiScreen(null);
1796 }
1797 else if (this.thePlayer.isPlayerSleeping() && this.theWorld != null)
1798 {
1799 this.displayGuiScreen(new GuiSleepMP());
1800 }
1801 }
1802 else if (this.currentScreen != null && this.currentScreen instanceof GuiSleepMP && !this.thePlayer.isPlayerSleeping())
1803 {
1804 this.displayGuiScreen(null);
1805 }
1806
1807 if (this.currentScreen != null)
1808 {

Callers 1

runGameLoopMethod · 0.95

Calls 15

updateStrafeFixBindsMethod · 0.95
displayGuiScreenMethod · 0.95
makeCrashReportMethod · 0.95
makeCategoryMethod · 0.95
setKeyBindStateMethod · 0.95
onTickMethod · 0.95
getSystemTimeMethod · 0.95
clamp_floatMethod · 0.95
setIngameFocusMethod · 0.95
dispatchKeypressesMethod · 0.95
displayInGameMenuMethod · 0.95

Tested by

no test coverage detected