Package net.minecraft.client.gui
Class IngameGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.IngameGui
-
- Direct Known Subclasses:
ForgeIngameGui
public class IngameGui extends AbstractGui
-
-
Field Summary
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
canRenderCrosshairForSpectator(RayTraceResult p_212913_1_)
void
clearCache()
protected void
displayScoreboardSidebar(MatrixStack p_238447_1_, ScoreObjective p_238447_2_)
protected void
drawBackdrop(MatrixStack p_238448_1_, FontRenderer p_238448_2_, int p_238448_3_, int p_238448_4_, int p_238448_5_)
BossOverlayGui
getBossOverlay()
private PlayerEntity
getCameraPlayer()
NewChatGui
getChat()
FontRenderer
getFont()
int
getGuiTicks()
private LivingEntity
getPlayerVehicleWithHealth()
SpectatorGui
getSpectatorGui()
PlayerTabOverlayGui
getTabList()
private int
getVehicleMaxHearts(LivingEntity p_212306_1_)
private int
getVisibleVehicleHeartRows(int p_212302_1_)
java.util.UUID
guessChatUUID(ITextComponent p_244795_1_)
void
handleChat(ChatType p_238450_1_, ITextComponent p_238450_2_, java.util.UUID p_238450_3_)
void
onDisconnected()
void
render(MatrixStack p_238445_1_, float p_238445_2_)
protected void
renderCrosshair(MatrixStack p_238456_1_)
void
renderDemoOverlay(MatrixStack p_238455_1_)
protected void
renderEffects(MatrixStack p_238444_1_)
void
renderExperienceBar(MatrixStack p_238454_1_, int p_238454_2_)
protected void
renderHotbar(float p_238443_1_, MatrixStack p_238443_2_)
void
renderJumpMeter(MatrixStack p_238446_1_, int p_238446_2_)
private void
renderPlayerHealth(MatrixStack p_238457_1_)
protected void
renderPortalOverlay(float p_194805_1_)
protected void
renderPumpkin()
void
renderSelectedItemName(MatrixStack p_238453_1_)
private void
renderSlot(int p_184044_1_, int p_184044_2_, float p_184044_3_, PlayerEntity p_184044_4_, ItemStack p_184044_5_)
private void
renderVehicleHealth(MatrixStack p_238458_1_)
protected void
renderVignette(Entity p_212303_1_)
void
resetTitleTimes()
void
setNowPlaying(ITextComponent p_238451_1_)
void
setOverlayMessage(ITextComponent p_175188_1_, boolean p_175188_2_)
void
setTitles(ITextComponent p_238452_1_, ITextComponent p_238452_2_, int p_238452_3_, int p_238452_4_, int p_238452_5_)
void
tick()
private void
updateVignetteBrightness(Entity p_212307_1_)
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
-
-
-
Field Detail
-
VIGNETTE_LOCATION
protected static final ResourceLocation VIGNETTE_LOCATION
-
WIDGETS_LOCATION
protected static final ResourceLocation WIDGETS_LOCATION
-
PUMPKIN_BLUR_LOCATION
protected static final ResourceLocation PUMPKIN_BLUR_LOCATION
-
DEMO_EXPIRED_TEXT
private static final ITextComponent DEMO_EXPIRED_TEXT
-
random
protected final java.util.Random random
-
minecraft
protected final Minecraft minecraft
-
itemRenderer
protected final ItemRenderer itemRenderer
-
chat
protected final NewChatGui chat
-
tickCount
protected int tickCount
-
overlayMessageString
@Nullable protected ITextComponent overlayMessageString
-
overlayMessageTime
protected int overlayMessageTime
-
animateOverlayMessageColor
protected boolean animateOverlayMessageColor
-
vignetteBrightness
public float vignetteBrightness
-
toolHighlightTimer
protected int toolHighlightTimer
-
lastToolHighlight
protected ItemStack lastToolHighlight
-
debugScreen
protected final DebugOverlayGui debugScreen
-
subtitleOverlay
protected final SubtitleOverlayGui subtitleOverlay
-
spectatorGui
protected final SpectatorGui spectatorGui
-
tabList
protected final PlayerTabOverlayGui tabList
-
bossOverlay
protected final BossOverlayGui bossOverlay
-
titleTime
protected int titleTime
-
title
@Nullable protected ITextComponent title
-
subtitle
@Nullable protected ITextComponent 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
protected final java.util.Map<ChatType,java.util.List<IChatListener>> chatListeners
-
-
Constructor Detail
-
IngameGui
public IngameGui(Minecraft p_i46325_1_)
-
-
Method Detail
-
resetTitleTimes
public void resetTitleTimes()
-
render
public void render(MatrixStack p_238445_1_, float p_238445_2_)
-
drawBackdrop
protected void drawBackdrop(MatrixStack p_238448_1_, FontRenderer p_238448_2_, int p_238448_3_, int p_238448_4_, int p_238448_5_)
-
renderCrosshair
protected void renderCrosshair(MatrixStack p_238456_1_)
-
canRenderCrosshairForSpectator
private boolean canRenderCrosshairForSpectator(RayTraceResult p_212913_1_)
-
renderEffects
protected void renderEffects(MatrixStack p_238444_1_)
-
renderHotbar
protected void renderHotbar(float p_238443_1_, MatrixStack p_238443_2_)
-
renderJumpMeter
public void renderJumpMeter(MatrixStack p_238446_1_, int p_238446_2_)
-
renderExperienceBar
public void renderExperienceBar(MatrixStack p_238454_1_, int p_238454_2_)
-
renderSelectedItemName
public void renderSelectedItemName(MatrixStack p_238453_1_)
-
renderDemoOverlay
public void renderDemoOverlay(MatrixStack p_238455_1_)
-
displayScoreboardSidebar
protected void displayScoreboardSidebar(MatrixStack p_238447_1_, ScoreObjective p_238447_2_)
-
getCameraPlayer
private PlayerEntity getCameraPlayer()
-
getPlayerVehicleWithHealth
private LivingEntity getPlayerVehicleWithHealth()
-
getVehicleMaxHearts
private int getVehicleMaxHearts(LivingEntity p_212306_1_)
-
getVisibleVehicleHeartRows
private int getVisibleVehicleHeartRows(int p_212302_1_)
-
renderPlayerHealth
private void renderPlayerHealth(MatrixStack p_238457_1_)
-
renderVehicleHealth
private void renderVehicleHealth(MatrixStack p_238458_1_)
-
renderPumpkin
protected void renderPumpkin()
-
updateVignetteBrightness
private void updateVignetteBrightness(Entity p_212307_1_)
-
renderVignette
protected void renderVignette(Entity p_212303_1_)
-
renderPortalOverlay
protected void renderPortalOverlay(float p_194805_1_)
-
renderSlot
private void renderSlot(int p_184044_1_, int p_184044_2_, float p_184044_3_, PlayerEntity p_184044_4_, ItemStack p_184044_5_)
-
tick
public void tick()
-
setNowPlaying
public void setNowPlaying(ITextComponent p_238451_1_)
-
setOverlayMessage
public void setOverlayMessage(ITextComponent p_175188_1_, boolean p_175188_2_)
-
setTitles
public void setTitles(@Nullable ITextComponent p_238452_1_, @Nullable ITextComponent p_238452_2_, int p_238452_3_, int p_238452_4_, int p_238452_5_)
-
guessChatUUID
public java.util.UUID guessChatUUID(ITextComponent p_244795_1_)
-
handleChat
public void handleChat(ChatType p_238450_1_, ITextComponent p_238450_2_, java.util.UUID p_238450_3_)
-
getChat
public NewChatGui getChat()
-
getGuiTicks
public int getGuiTicks()
-
getFont
public FontRenderer getFont()
-
getSpectatorGui
public SpectatorGui getSpectatorGui()
-
getTabList
public PlayerTabOverlayGui getTabList()
-
onDisconnected
public void onDisconnected()
-
getBossOverlay
public BossOverlayGui getBossOverlay()
-
clearCache
public void clearCache()
-
-