Package net.minecraft.client.gui
Class Gui
java.lang.Object
net.minecraft.client.gui.Gui
- Direct Known Subclasses:
- ForgeGui
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final ResourceLocationprotected static final ResourceLocationprotected booleanprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final floatprotected floatprotected final BossHealthOverlayprotected final ChatComponentprotected booleanprotected static final intprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected DebugScreenOverlayprotected static final Componentprotected intprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected longprotected static final intprotected static final intprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected final ItemRendererprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected floatprotected intprotected longprotected ItemStackprotected static final intprotected static final floatprotected final Minecraftprotected static final intprotected Componentprotected intprotected static final floatprotected static final ResourceLocationprotected static final ResourceLocationprotected final RandomSourceprotected static final Componentprotected floatprotected intprotected intprotected static final Stringprotected final SpectatorGuiprotected static final ResourceLocationprotected Componentprotected final SubtitleOverlayprotected final PlayerTabOverlayprotected intprotected Componentprotected intprotected intprotected intprotected intprotected intprotected static final ResourceLocationfloat
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate booleancanRenderCrosshairForSpectator(HitResult p_93025_) voidclear()voidvoiddisplayScoreboardSidebar(GuiGraphics p_282008_, Objective p_283455_) protected voiddrawBackdrop(GuiGraphics p_282548_, Font p_93041_, int p_93042_, int p_93043_, int p_93044_) private PlayergetChat()getFont()intprivate LivingEntityprivate intgetVehicleMaxHearts(LivingEntity p_93023_) private intgetVisibleVehicleHeartRows(int p_93013_) booleanvoidvoidrender(GuiGraphics p_282884_, float p_282611_) voidrenderCrosshair(GuiGraphics p_282828_) voidrenderDemoOverlay(GuiGraphics p_281825_) voidrenderEffects(GuiGraphics p_282812_) voidrenderExperienceBar(GuiGraphics p_281906_, int p_282731_) private voidrenderHeart(GuiGraphics p_283024_, Gui.HeartType p_281393_, int p_283636_, int p_283279_, boolean p_283440_, boolean p_282496_, boolean p_301416_) protected voidrenderHearts(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_) voidrenderHotbar(float p_283031_, GuiGraphics p_282108_) voidrenderJumpMeter(PlayerRideableJumping p_282774_, GuiGraphics p_282939_, int p_283351_) private voidrenderPlayerHealth(GuiGraphics p_283143_) protected voidrenderPortalOverlay(GuiGraphics p_283375_, float p_283296_) private voidrenderSavingIndicator(GuiGraphics p_282761_) voidrenderSelectedItemName(GuiGraphics p_283501_) voidrenderSelectedItemName(GuiGraphics p_283501_, int yShift) private voidrenderSlot(GuiGraphics p_283283_, int p_283213_, int p_281301_, float p_281885_, Player p_283644_, ItemStack p_283317_, int p_283261_) voidrenderSpyglassOverlay(GuiGraphics p_282069_, float p_283442_) protected voidrenderTextureOverlay(GuiGraphics p_282304_, ResourceLocation p_281622_, float p_281504_) private voidrenderVehicleHealth(GuiGraphics p_283368_) voidrenderVignette(GuiGraphics p_283063_, Entity p_283439_) voidvoidsetChatDisabledByPlayerShown(boolean p_238398_) voidsetNowPlaying(Component p_93056_) voidsetOverlayMessage(Component p_93064_, boolean p_93065_) voidsetSubtitle(Component p_168712_) voidsetTimes(int p_168685_, int p_168686_, int p_168687_) voidprivate voidtick()voidtick(boolean p_193833_) private voidprivate voidupdateVignetteBrightness(Entity p_93021_) 
- 
Field Details- 
CROSSHAIR_SPRITE
- 
CROSSHAIR_ATTACK_INDICATOR_FULL_SPRITE
- 
CROSSHAIR_ATTACK_INDICATOR_BACKGROUND_SPRITE
- 
CROSSHAIR_ATTACK_INDICATOR_PROGRESS_SPRITE
- 
EFFECT_BACKGROUND_AMBIENT_SPRITE
- 
EFFECT_BACKGROUND_SPRITE
- 
HOTBAR_SPRITE
- 
HOTBAR_SELECTION_SPRITE
- 
HOTBAR_OFFHAND_LEFT_SPRITE
- 
HOTBAR_OFFHAND_RIGHT_SPRITE
- 
HOTBAR_ATTACK_INDICATOR_BACKGROUND_SPRITE
- 
HOTBAR_ATTACK_INDICATOR_PROGRESS_SPRITE
- 
JUMP_BAR_BACKGROUND_SPRITE
- 
JUMP_BAR_COOLDOWN_SPRITE
- 
JUMP_BAR_PROGRESS_SPRITE
- 
EXPERIENCE_BAR_BACKGROUND_SPRITE
- 
EXPERIENCE_BAR_PROGRESS_SPRITE
- 
ARMOR_EMPTY_SPRITE
- 
ARMOR_HALF_SPRITE
- 
ARMOR_FULL_SPRITE
- 
FOOD_EMPTY_HUNGER_SPRITE
- 
FOOD_HALF_HUNGER_SPRITE
- 
FOOD_FULL_HUNGER_SPRITE
- 
FOOD_EMPTY_SPRITE
- 
FOOD_HALF_SPRITE
- 
FOOD_FULL_SPRITE
- 
AIR_SPRITE
- 
AIR_BURSTING_SPRITE
- 
HEART_VEHICLE_CONTAINER_SPRITE
- 
HEART_VEHICLE_FULL_SPRITE
- 
HEART_VEHICLE_HALF_SPRITE
- 
VIGNETTE_LOCATION
- 
PUMPKIN_BLUR_LOCATION
- 
SPYGLASS_SCOPE_LOCATION
- 
POWDER_SNOW_OUTLINE_LOCATION
- 
DEMO_EXPIRED_TEXT
- 
SAVING_TEXT
- 
COLOR_WHITEprotected static final int COLOR_WHITE- See Also:
 
- 
MIN_CROSSHAIR_ATTACK_SPEEDprotected static final float MIN_CROSSHAIR_ATTACK_SPEED- See Also:
 
- 
NUM_HEARTS_PER_ROWprotected static final int NUM_HEARTS_PER_ROW- See Also:
 
- 
LINE_HEIGHTprotected static final int LINE_HEIGHT- See Also:
 
- 
SPACER- See Also:
 
- 
PORTAL_OVERLAY_ALPHA_MINprotected static final float PORTAL_OVERLAY_ALPHA_MIN- See Also:
 
- 
HEART_SIZEprotected static final int HEART_SIZE- See Also:
 
- 
HEART_SEPARATIONprotected static final int HEART_SEPARATION- See Also:
 
- 
AUTOSAVE_FADE_SPEED_FACTORprotected static final float AUTOSAVE_FADE_SPEED_FACTOR- See Also:
 
- 
random
- 
minecraft
- 
itemRenderer
- 
chat
- 
tickCountprotected int tickCount
- 
overlayMessageString
- 
overlayMessageTimeprotected int overlayMessageTime
- 
animateOverlayMessageColorprotected boolean animateOverlayMessageColor
- 
chatDisabledByPlayerShownprotected boolean chatDisabledByPlayerShown
- 
vignetteBrightnesspublic float vignetteBrightness
- 
toolHighlightTimerprotected int toolHighlightTimer
- 
lastToolHighlight
- 
debugOverlay
- 
subtitleOverlay
- 
spectatorGui
- 
tabList
- 
bossOverlay
- 
titleTimeprotected int titleTime
- 
title
- 
subtitle
- 
titleFadeInTimeprotected int titleFadeInTime
- 
titleStayTimeprotected int titleStayTime
- 
titleFadeOutTimeprotected int titleFadeOutTime
- 
lastHealthprotected int lastHealth
- 
displayHealthprotected int displayHealth
- 
lastHealthTimeprotected long lastHealthTime
- 
healthBlinkTimeprotected long healthBlinkTime
- 
screenWidthprotected int screenWidth
- 
screenHeightprotected int screenHeight
- 
autosaveIndicatorValueprotected float autosaveIndicatorValue
- 
lastAutosaveIndicatorValueprotected float lastAutosaveIndicatorValue
- 
scopeScaleprotected float scopeScale
 
- 
- 
Constructor Details- 
Gui
 
- 
- 
Method Details- 
resetTitleTimespublic void resetTitleTimes()
- 
render
- 
drawBackdropprotected void drawBackdrop(GuiGraphics p_282548_, Font p_93041_, int p_93042_, int p_93043_, int p_93044_) 
- 
renderCrosshair
- 
canRenderCrosshairForSpectator
- 
renderEffects
- 
renderHotbar
- 
renderJumpMeter
- 
renderExperienceBar
- 
renderSelectedItemName
- 
renderSelectedItemName
- 
renderDemoOverlay
- 
displayScoreboardSidebar
- 
getCameraPlayer
- 
getPlayerVehicleWithHealth
- 
getVehicleMaxHearts
- 
getVisibleVehicleHeartRowsprivate int getVisibleVehicleHeartRows(int p_93013_) 
- 
renderPlayerHealth
- 
renderHeartsprotected 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_) 
- 
renderHeartprivate void renderHeart(GuiGraphics p_283024_, Gui.HeartType p_281393_, int p_283636_, int p_283279_, boolean p_283440_, boolean p_282496_, boolean p_301416_) 
- 
renderVehicleHealth
- 
renderTextureOverlayprotected void renderTextureOverlay(GuiGraphics p_282304_, ResourceLocation p_281622_, float p_281504_) 
- 
renderSpyglassOverlay
- 
updateVignetteBrightness
- 
renderVignette
- 
renderPortalOverlay
- 
renderSlotprivate void renderSlot(GuiGraphics p_283283_, int p_283213_, int p_281301_, float p_281885_, Player p_283644_, ItemStack p_283317_, int p_283261_) 
- 
tickpublic void tick(boolean p_193833_) 
- 
tickprivate void tick()
- 
tickAutosaveIndicatorprivate void tickAutosaveIndicator()
- 
setNowPlaying
- 
setOverlayMessage
- 
setChatDisabledByPlayerShownpublic void setChatDisabledByPlayerShown(boolean p_238398_) 
- 
isShowingChatDisabledByPlayerpublic boolean isShowingChatDisabledByPlayer()
- 
setTimespublic void setTimes(int p_168685_, int p_168686_, int p_168687_) 
- 
setSubtitle
- 
setTitle
- 
clearpublic void clear()
- 
getChat
- 
getGuiTickspublic int getGuiTicks()
- 
getFont
- 
getSpectatorGui
- 
getTabList
- 
onDisconnectedpublic void onDisconnected()
- 
getBossOverlay
- 
getDebugOverlay
- 
clearCachepublic void clearCache()
- 
renderSavingIndicator
 
-