Package net.minecraft.client.gui
Class Gui
java.lang.Object
net.minecraft.client.gui.Gui
- Direct Known Subclasses:
ForgeGui
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected static final float
protected float
protected final BossHealthOverlay
protected final ChatComponent
protected boolean
protected static final int
protected final DebugScreenOverlay
protected static final Component
protected int
protected static final ResourceLocation
protected long
protected static final int
protected static final int
protected final ItemRenderer
protected float
protected int
protected long
protected ItemStack
protected static final int
protected static final float
protected final Minecraft
protected static final int
protected Component
protected int
protected static final float
protected static final ResourceLocation
protected static final ResourceLocation
protected final RandomSource
protected static final Component
protected float
protected int
protected int
protected static final String
protected final SpectatorGui
protected static final ResourceLocation
protected Component
protected final SubtitleOverlay
protected final PlayerTabOverlay
protected int
protected Component
protected int
protected int
protected int
protected int
protected int
protected static final ResourceLocation
float
protected static final ResourceLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canRenderCrosshairForSpectator
(HitResult p_93025_) void
clear()
void
void
displayScoreboardSidebar
(GuiGraphics p_282008_, Objective p_283455_) protected void
drawBackdrop
(GuiGraphics p_282548_, Font p_93041_, int p_93042_, int p_93043_, int p_93044_) private Player
getChat()
getFont()
int
private LivingEntity
private int
getVehicleMaxHearts
(LivingEntity p_93023_) private int
getVisibleVehicleHeartRows
(int p_93013_) boolean
void
void
render
(GuiGraphics p_282884_, float p_282611_) void
renderCrosshair
(GuiGraphics p_282828_) void
renderDemoOverlay
(GuiGraphics p_281825_) void
renderEffects
(GuiGraphics p_282812_) void
renderExperienceBar
(GuiGraphics p_281906_, int p_282731_) private void
renderHeart
(GuiGraphics p_283024_, Gui.HeartType p_281393_, int p_283636_, int p_283279_, int p_283188_, boolean p_283440_, boolean p_282496_) protected 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_) void
renderHotbar
(float p_283031_, GuiGraphics p_282108_) void
renderJumpMeter
(PlayerRideableJumping p_282774_, GuiGraphics p_282939_, int p_283351_) private void
renderPlayerHealth
(GuiGraphics p_283143_) protected void
renderPortalOverlay
(GuiGraphics p_283375_, float p_283296_) private void
renderSavingIndicator
(GuiGraphics p_282761_) void
renderSelectedItemName
(GuiGraphics p_283501_) void
renderSelectedItemName
(GuiGraphics p_283501_, int yShift) private void
renderSlot
(GuiGraphics p_283283_, int p_283213_, int p_281301_, float p_281885_, Player p_283644_, ItemStack p_283317_, int p_283261_) void
renderSpyglassOverlay
(GuiGraphics p_282069_, float p_283442_) protected void
renderTextureOverlay
(GuiGraphics p_282304_, ResourceLocation p_281622_, float p_281504_) private void
renderVehicleHealth
(GuiGraphics p_283368_) void
renderVignette
(GuiGraphics p_283063_, Entity p_283439_) void
void
setChatDisabledByPlayerShown
(boolean p_238398_) void
setNowPlaying
(Component p_93056_) void
setOverlayMessage
(Component p_93064_, boolean p_93065_) void
setSubtitle
(Component p_168712_) void
setTimes
(int p_168685_, int p_168686_, int p_168687_) void
private void
tick()
void
tick
(boolean p_193833_) private void
private void
updateVignetteBrightness
(Entity p_93021_)
-
Field Details
-
VIGNETTE_LOCATION
-
WIDGETS_LOCATION
-
PUMPKIN_BLUR_LOCATION
-
SPYGLASS_SCOPE_LOCATION
-
POWDER_SNOW_OUTLINE_LOCATION
-
GUI_ICONS_LOCATION
-
DEMO_EXPIRED_TEXT
-
SAVING_TEXT
-
COLOR_WHITE
protected static final int COLOR_WHITE- See Also:
-
MIN_CROSSHAIR_ATTACK_SPEED
protected static final float MIN_CROSSHAIR_ATTACK_SPEED- See Also:
-
NUM_HEARTS_PER_ROW
protected static final int NUM_HEARTS_PER_ROW- See Also:
-
LINE_HEIGHT
protected static final int LINE_HEIGHT- See Also:
-
SPACER
- See Also:
-
PORTAL_OVERLAY_ALPHA_MIN
protected static final float PORTAL_OVERLAY_ALPHA_MIN- See Also:
-
HEART_SIZE
protected static final int HEART_SIZE- See Also:
-
HEART_SEPARATION
protected static final int HEART_SEPARATION- See Also:
-
AUTOSAVE_FADE_SPEED_FACTOR
protected static final float AUTOSAVE_FADE_SPEED_FACTOR- See Also:
-
random
-
minecraft
-
itemRenderer
-
chat
-
tickCount
protected int tickCount -
overlayMessageString
-
overlayMessageTime
protected int overlayMessageTime -
animateOverlayMessageColor
protected boolean animateOverlayMessageColor -
chatDisabledByPlayerShown
protected boolean chatDisabledByPlayerShown -
vignetteBrightness
public float vignetteBrightness -
toolHighlightTimer
protected int toolHighlightTimer -
lastToolHighlight
-
debugScreen
-
subtitleOverlay
-
spectatorGui
-
tabList
-
bossOverlay
-
titleTime
protected int titleTime -
title
-
subtitle
-
titleFadeInTime
protected int titleFadeInTime -
titleStayTime
protected int titleStayTime -
titleFadeOutTime
protected int titleFadeOutTime -
lastHealth
protected int lastHealth -
displayHealth
protected int displayHealth -
lastHealthTime
protected long lastHealthTime -
healthBlinkTime
protected long healthBlinkTime -
screenWidth
protected int screenWidth -
screenHeight
protected int screenHeight -
autosaveIndicatorValue
protected float autosaveIndicatorValue -
lastAutosaveIndicatorValue
protected float lastAutosaveIndicatorValue -
scopeScale
protected float scopeScale
-
-
Constructor Details
-
Gui
-
-
Method Details
-
resetTitleTimes
public void resetTitleTimes() -
render
-
drawBackdrop
protected 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
-
getVisibleVehicleHeartRows
private int getVisibleVehicleHeartRows(int p_93013_) -
renderPlayerHealth
-
renderHearts
protected 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_, int p_283188_, boolean p_283440_, boolean p_282496_) -
renderVehicleHealth
-
renderTextureOverlay
protected void renderTextureOverlay(GuiGraphics p_282304_, ResourceLocation p_281622_, float p_281504_) -
renderSpyglassOverlay
-
updateVignetteBrightness
-
renderVignette
-
renderPortalOverlay
-
renderSlot
private void renderSlot(GuiGraphics p_283283_, int p_283213_, int p_281301_, float p_281885_, 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
-
setOverlayMessage
-
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
-
setTitle
-
clear
public void clear() -
getChat
-
getGuiTicks
public int getGuiTicks() -
getFont
-
getSpectatorGui
-
getTabList
-
onDisconnected
public void onDisconnected() -
getBossOverlay
-
clearCache
public void clearCache() -
renderSavingIndicator
-