Package net.minecraft.client.gui
Class Gui
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.Gui
- Direct Known Subclasses:
ForgeIngameGui
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected BossHealthOverlay
protected ChatComponent
protected Map<ChatType,List<ChatListener>>
protected static int
protected DebugScreenOverlay
protected static Component
protected int
protected long
protected static int
protected static int
protected ItemRenderer
protected int
protected long
protected ItemStack
protected static int
protected static float
protected Minecraft
protected static int
protected Component
protected int
protected static float
protected static ResourceLocation
protected static ResourceLocation
protected Random
protected float
protected int
protected int
protected static String
protected SpectatorGui
protected static ResourceLocation
protected Component
protected SubtitleOverlay
protected PlayerTabOverlay
protected int
protected Component
protected int
protected int
protected int
protected int
protected int
protected static ResourceLocation
float
protected static ResourceLocation
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canRenderCrosshairForSpectator(HitResult p_93025_)
void
clear()
void
protected void
displayScoreboardSidebar(PoseStack p_93037_, Objective p_93038_)
protected void
drawBackdrop(PoseStack p_93040_, 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_)
guessChatUUID(Component p_93075_)
void
handleChat(ChatType p_93052_, Component p_93053_, UUID p_93054_)
void
void
protected void
renderCrosshair(PoseStack p_93081_)
void
renderDemoOverlay(PoseStack p_93078_)
protected void
renderEffects(PoseStack p_93029_)
void
renderExperienceBar(PoseStack p_93072_, int p_93073_)
private void
renderHeart(PoseStack p_168701_, Gui.HeartType p_168702_, int p_168703_, int p_168704_, int p_168705_, boolean p_168706_, boolean p_168707_)
protected void
renderHearts(PoseStack p_168689_, 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_)
protected void
renderHotbar(float p_93010_, PoseStack p_93011_)
void
renderJumpMeter(PoseStack p_93034_, int p_93035_)
private void
renderPlayerHealth(PoseStack p_93084_)
protected void
renderPortalOverlay(float p_93008_)
void
renderSelectedItemName(PoseStack p_93070_)
private void
renderSlot(int p_168678_, int p_168679_, float p_168680_, Player p_168681_, ItemStack p_168682_, int p_168683_)
protected void
renderSpyglassOverlay(float p_168676_)
protected void
renderTextureOverlay(ResourceLocation p_168709_, float p_168710_)
private void
renderVehicleHealth(PoseStack p_93087_)
protected void
renderVignette(Entity p_93068_)
void
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
void
tick()
private void
updateVignetteBrightness(Entity p_93021_)
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Field Details
-
VIGNETTE_LOCATION
-
WIDGETS_LOCATION
-
PUMPKIN_BLUR_LOCATION
-
SPYGLASS_SCOPE_LOCATION
-
POWDER_SNOW_OUTLINE_LOCATION
-
DEMO_EXPIRED_TEXT
-
COLOR_WHITE
protected static final int COLOR_WHITE- See Also:
- Constant Field Values
-
MIN_CROSSHAIR_ATTACK_SPEED
protected static final float MIN_CROSSHAIR_ATTACK_SPEED- See Also:
- Constant Field Values
-
NUM_HEARTS_PER_ROW
protected static final int NUM_HEARTS_PER_ROW- See Also:
- Constant Field Values
-
LINE_HEIGHT
protected static final int LINE_HEIGHT- See Also:
- Constant Field Values
-
SPACER
- See Also:
- Constant Field Values
-
PORTAL_OVERLAY_ALPHA_MIN
protected static final float PORTAL_OVERLAY_ALPHA_MIN- See Also:
- Constant Field Values
-
HEART_SIZE
protected static final int HEART_SIZE- See Also:
- Constant Field Values
-
HEART_SEPARATION
protected static final int HEART_SEPARATION- See Also:
- Constant Field Values
-
random
-
minecraft
-
itemRenderer
-
chat
-
tickCount
protected int tickCount -
overlayMessageString
-
overlayMessageTime
protected int overlayMessageTime -
animateOverlayMessageColor
protected boolean animateOverlayMessageColor -
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 -
chatListeners
-
scopeScale
protected float scopeScale
-
-
Constructor Details
-
Gui
-
-
Method Details
-
resetTitleTimes
public void resetTitleTimes() -
render
-
drawBackdrop
-
renderCrosshair
-
canRenderCrosshairForSpectator
-
renderEffects
-
renderHotbar
-
renderJumpMeter
-
renderExperienceBar
-
renderSelectedItemName
-
renderDemoOverlay
-
displayScoreboardSidebar
-
getCameraPlayer
-
getPlayerVehicleWithHealth
-
getVehicleMaxHearts
-
getVisibleVehicleHeartRows
private int getVisibleVehicleHeartRows(int p_93013_) -
renderPlayerHealth
-
renderHearts
-
renderHeart
private void renderHeart(PoseStack p_168701_, Gui.HeartType p_168702_, int p_168703_, int p_168704_, int p_168705_, boolean p_168706_, boolean p_168707_) -
renderVehicleHealth
-
renderTextureOverlay
-
renderSpyglassOverlay
protected void renderSpyglassOverlay(float p_168676_) -
updateVignetteBrightness
-
renderVignette
-
renderPortalOverlay
protected void renderPortalOverlay(float p_93008_) -
renderSlot
-
tick
public void tick() -
setNowPlaying
-
setOverlayMessage
-
setTimes
public void setTimes(int p_168685_, int p_168686_, int p_168687_) -
setSubtitle
-
setTitle
-
clear
public void clear() -
guessChatUUID
-
handleChat
-
getChat
-
getGuiTicks
public int getGuiTicks() -
getFont
-
getSpectatorGui
-
getTabList
-
onDisconnected
public void onDisconnected() -
getBossOverlay
-
clearCache
public void clearCache()
-