Class Gui

java.lang.Object
net.minecraft.client.gui.Gui

public class Gui extends Object
  • Field Details

    • CROSSHAIR_SPRITE

      private static final ResourceLocation CROSSHAIR_SPRITE
    • CROSSHAIR_ATTACK_INDICATOR_FULL_SPRITE

      private static final ResourceLocation CROSSHAIR_ATTACK_INDICATOR_FULL_SPRITE
    • CROSSHAIR_ATTACK_INDICATOR_BACKGROUND_SPRITE

      private static final ResourceLocation CROSSHAIR_ATTACK_INDICATOR_BACKGROUND_SPRITE
    • CROSSHAIR_ATTACK_INDICATOR_PROGRESS_SPRITE

      private static final ResourceLocation CROSSHAIR_ATTACK_INDICATOR_PROGRESS_SPRITE
    • EFFECT_BACKGROUND_AMBIENT_SPRITE

      private static final ResourceLocation EFFECT_BACKGROUND_AMBIENT_SPRITE
    • EFFECT_BACKGROUND_SPRITE

      private static final ResourceLocation EFFECT_BACKGROUND_SPRITE
    • HOTBAR_SPRITE

      private static final ResourceLocation HOTBAR_SPRITE
    • HOTBAR_SELECTION_SPRITE

      private static final ResourceLocation HOTBAR_SELECTION_SPRITE
    • HOTBAR_OFFHAND_LEFT_SPRITE

      private static final ResourceLocation HOTBAR_OFFHAND_LEFT_SPRITE
    • HOTBAR_OFFHAND_RIGHT_SPRITE

      private static final ResourceLocation HOTBAR_OFFHAND_RIGHT_SPRITE
    • HOTBAR_ATTACK_INDICATOR_BACKGROUND_SPRITE

      private static final ResourceLocation HOTBAR_ATTACK_INDICATOR_BACKGROUND_SPRITE
    • HOTBAR_ATTACK_INDICATOR_PROGRESS_SPRITE

      private static final ResourceLocation HOTBAR_ATTACK_INDICATOR_PROGRESS_SPRITE
    • JUMP_BAR_BACKGROUND_SPRITE

      private static final ResourceLocation JUMP_BAR_BACKGROUND_SPRITE
    • JUMP_BAR_COOLDOWN_SPRITE

      private static final ResourceLocation JUMP_BAR_COOLDOWN_SPRITE
    • JUMP_BAR_PROGRESS_SPRITE

      private static final ResourceLocation JUMP_BAR_PROGRESS_SPRITE
    • EXPERIENCE_BAR_BACKGROUND_SPRITE

      private static final ResourceLocation EXPERIENCE_BAR_BACKGROUND_SPRITE
    • EXPERIENCE_BAR_PROGRESS_SPRITE

      private static final ResourceLocation EXPERIENCE_BAR_PROGRESS_SPRITE
    • ARMOR_EMPTY_SPRITE

      private static final ResourceLocation ARMOR_EMPTY_SPRITE
    • ARMOR_HALF_SPRITE

      private static final ResourceLocation ARMOR_HALF_SPRITE
    • ARMOR_FULL_SPRITE

      private static final ResourceLocation ARMOR_FULL_SPRITE
    • FOOD_EMPTY_HUNGER_SPRITE

      private static final ResourceLocation FOOD_EMPTY_HUNGER_SPRITE
    • FOOD_HALF_HUNGER_SPRITE

      private static final ResourceLocation FOOD_HALF_HUNGER_SPRITE
    • FOOD_FULL_HUNGER_SPRITE

      private static final ResourceLocation FOOD_FULL_HUNGER_SPRITE
    • FOOD_EMPTY_SPRITE

      private static final ResourceLocation FOOD_EMPTY_SPRITE
    • FOOD_HALF_SPRITE

      private static final ResourceLocation FOOD_HALF_SPRITE
    • FOOD_FULL_SPRITE

      private static final ResourceLocation FOOD_FULL_SPRITE
    • AIR_SPRITE

      private static final ResourceLocation AIR_SPRITE
    • AIR_BURSTING_SPRITE

      private static final ResourceLocation AIR_BURSTING_SPRITE
    • HEART_VEHICLE_CONTAINER_SPRITE

      private static final ResourceLocation HEART_VEHICLE_CONTAINER_SPRITE
    • HEART_VEHICLE_FULL_SPRITE

      private static final ResourceLocation HEART_VEHICLE_FULL_SPRITE
    • HEART_VEHICLE_HALF_SPRITE

      private static final ResourceLocation HEART_VEHICLE_HALF_SPRITE
    • VIGNETTE_LOCATION

      private static final ResourceLocation VIGNETTE_LOCATION
    • PUMPKIN_BLUR_LOCATION

      private static final ResourceLocation PUMPKIN_BLUR_LOCATION
    • SPYGLASS_SCOPE_LOCATION

      private static final ResourceLocation SPYGLASS_SCOPE_LOCATION
    • POWDER_SNOW_OUTLINE_LOCATION

      private static final ResourceLocation POWDER_SNOW_OUTLINE_LOCATION
    • SCORE_DISPLAY_ORDER

      private static final Comparator<PlayerScoreEntry> SCORE_DISPLAY_ORDER
    • DEMO_EXPIRED_TEXT

      private static final Component DEMO_EXPIRED_TEXT
    • SAVING_TEXT

      private static final Component SAVING_TEXT
    • MIN_CROSSHAIR_ATTACK_SPEED

      private static final float MIN_CROSSHAIR_ATTACK_SPEED
      See Also:
    • NUM_HEARTS_PER_ROW

      private static final int NUM_HEARTS_PER_ROW
      See Also:
    • LINE_HEIGHT

      private static final int LINE_HEIGHT
      See Also:
    • SPACER

      private static final String SPACER
      See Also:
    • PORTAL_OVERLAY_ALPHA_MIN

      private static final float PORTAL_OVERLAY_ALPHA_MIN
      See Also:
    • HEART_SIZE

      private static final int HEART_SIZE
      See Also:
    • HEART_SEPARATION

      private static final int HEART_SEPARATION
      See Also:
    • AUTOSAVE_FADE_SPEED_FACTOR

      private static final float AUTOSAVE_FADE_SPEED_FACTOR
      See Also:
    • random

      private final RandomSource random
    • minecraft

      private final Minecraft minecraft
    • chat

      private final ChatComponent chat
    • tickCount

      private int tickCount
    • overlayMessageString

      @Nullable private Component overlayMessageString
    • overlayMessageTime

      private int overlayMessageTime
    • animateOverlayMessageColor

      private boolean animateOverlayMessageColor
    • chatDisabledByPlayerShown

      private boolean chatDisabledByPlayerShown
    • vignetteBrightness

      public float vignetteBrightness
    • toolHighlightTimer

      private int toolHighlightTimer
    • lastToolHighlight

      private ItemStack lastToolHighlight
    • debugOverlay

      protected DebugScreenOverlay debugOverlay
    • subtitleOverlay

      private final SubtitleOverlay subtitleOverlay
    • spectatorGui

      private final SpectatorGui spectatorGui
    • tabList

      private final PlayerTabOverlay tabList
    • bossOverlay

      private final BossHealthOverlay bossOverlay
    • titleTime

      private int titleTime
    • title

      @Nullable private Component title
    • subtitle

      @Nullable private Component subtitle
    • titleFadeInTime

      private int titleFadeInTime
    • titleStayTime

      private int titleStayTime
    • titleFadeOutTime

      private int titleFadeOutTime
    • lastHealth

      private int lastHealth
    • displayHealth

      private int displayHealth
    • lastHealthTime

      private long lastHealthTime
    • healthBlinkTime

      private long healthBlinkTime
    • autosaveIndicatorValue

      private float autosaveIndicatorValue
    • lastAutosaveIndicatorValue

      private float lastAutosaveIndicatorValue
    • layers

      private final LayeredDraw layers
    • scopeScale

      private float scopeScale
  • Constructor Details

  • Method Details

    • resetTitleTimes

      public void resetTitleTimes()
    • render

      public void render(GuiGraphics p_282884_, DeltaTracker p_342095_)
    • renderCameraOverlays

      private void renderCameraOverlays(GuiGraphics p_333627_, DeltaTracker p_344236_)
    • renderSleepOverlay

      private void renderSleepOverlay(GuiGraphics p_329087_, DeltaTracker p_345225_)
    • renderOverlayMessage

      private void renderOverlayMessage(GuiGraphics p_330258_, DeltaTracker p_345514_)
    • renderTitle

      private void renderTitle(GuiGraphics p_331218_, DeltaTracker p_344700_)
    • renderChat

      private void renderChat(GuiGraphics p_329202_, DeltaTracker p_342328_)
    • renderScoreboardSidebar

      private void renderScoreboardSidebar(GuiGraphics p_332744_, DeltaTracker p_344235_)
    • renderTabList

      private void renderTabList(GuiGraphics p_330031_, DeltaTracker p_343599_)
    • renderCrosshair

      private void renderCrosshair(GuiGraphics p_282828_, DeltaTracker p_343490_)
    • canRenderCrosshairForSpectator

      private boolean canRenderCrosshairForSpectator(@Nullable HitResult p_93025_)
    • renderEffects

      private void renderEffects(GuiGraphics p_282812_, DeltaTracker p_343719_)
    • renderHotbarAndDecorations

      private void renderHotbarAndDecorations(GuiGraphics p_333625_, DeltaTracker p_344796_)
    • renderItemHotbar

      private void renderItemHotbar(GuiGraphics p_332738_, DeltaTracker p_342619_)
    • renderJumpMeter

      private void renderJumpMeter(PlayerRideableJumping p_282774_, GuiGraphics p_282939_, int p_283351_)
    • renderExperienceBar

      private void renderExperienceBar(GuiGraphics p_281906_, int p_282731_)
    • renderExperienceLevel

      private void renderExperienceLevel(GuiGraphics p_335340_, DeltaTracker p_344840_)
    • isExperienceBarVisible

      private boolean isExperienceBarVisible()
    • renderSelectedItemName

      private void renderSelectedItemName(GuiGraphics p_283501_)
    • renderSelectedItemName

      public void renderSelectedItemName(GuiGraphics p_283501_, int yShift)
    • renderDemoOverlay

      private void renderDemoOverlay(GuiGraphics p_281825_, DeltaTracker p_343325_)
    • displayScoreboardSidebar

      private void displayScoreboardSidebar(GuiGraphics p_282008_, Objective p_283455_)
    • getCameraPlayer

      @Nullable private Player getCameraPlayer()
    • getPlayerVehicleWithHealth

      @Nullable private LivingEntity getPlayerVehicleWithHealth()
    • getVehicleMaxHearts

      private int getVehicleMaxHearts(@Nullable LivingEntity p_93023_)
    • getVisibleVehicleHeartRows

      private int getVisibleVehicleHeartRows(int p_93013_)
    • renderPlayerHealth

      private void renderPlayerHealth(GuiGraphics p_283143_)
    • renderArmor

      private static void renderArmor(GuiGraphics p_332897_, Player p_332999_, int p_330861_, int p_331335_, int p_329919_, int p_329454_)
    • renderHearts

      private void renderHearts(GuiGraphics p_282497_, Player p_168690_, int p_168691_, int p_168692_, int p_168693_, int p_168694_, float p_168695_, int p_168696_, int p_168697_, int p_168698_, boolean p_168699_)
    • renderHeart

      private void renderHeart(GuiGraphics p_283024_, Gui.HeartType p_281393_, int p_283636_, int p_283279_, boolean p_283440_, boolean p_282496_, boolean p_301416_)
    • renderFood

      private void renderFood(GuiGraphics p_330960_, Player p_328268_, int p_331606_, int p_330339_)
    • renderVehicleHealth

      private void renderVehicleHealth(GuiGraphics p_283368_)
    • renderTextureOverlay

      private void renderTextureOverlay(GuiGraphics p_282304_, ResourceLocation p_281622_, float p_281504_)
    • renderSpyglassOverlay

      private void renderSpyglassOverlay(GuiGraphics p_282069_, float p_283442_)
    • updateVignetteBrightness

      private void updateVignetteBrightness(Entity p_93021_)
    • renderVignette

      private void renderVignette(GuiGraphics p_283063_, @Nullable Entity p_283439_)
    • renderPortalOverlay

      private void renderPortalOverlay(GuiGraphics p_283375_, float p_283296_)
    • renderSlot

      private void renderSlot(GuiGraphics p_283283_, int p_283213_, int p_281301_, DeltaTracker p_344149_, Player p_283644_, ItemStack p_283317_, int p_283261_)
    • tick

      public void tick(boolean p_193833_)
    • tick

      private void tick()
    • tickAutosaveIndicator

      private void tickAutosaveIndicator()
    • setNowPlaying

      public void setNowPlaying(Component p_93056_)
    • setOverlayMessage

      public void setOverlayMessage(Component p_93064_, boolean p_93065_)
    • setChatDisabledByPlayerShown

      public void setChatDisabledByPlayerShown(boolean p_238398_)
    • isShowingChatDisabledByPlayer

      public boolean isShowingChatDisabledByPlayer()
    • setTimes

      public void setTimes(int p_168685_, int p_168686_, int p_168687_)
    • setSubtitle

      public void setSubtitle(Component p_168712_)
    • setTitle

      public void setTitle(Component p_168715_)
    • clear

      public void clear()
    • getChat

      public ChatComponent getChat()
    • getGuiTicks

      public int getGuiTicks()
    • getFont

      public Font getFont()
    • getSpectatorGui

      public SpectatorGui getSpectatorGui()
    • getTabList

      public PlayerTabOverlay getTabList()
    • onDisconnected

      public void onDisconnected()
    • getBossOverlay

      public BossHealthOverlay getBossOverlay()
    • getDebugOverlay

      public DebugScreenOverlay getDebugOverlay()
    • clearCache

      public void clearCache()
    • renderSavingIndicator

      public void renderSavingIndicator(GuiGraphics p_282761_, DeltaTracker p_344404_)