public class GuiIngame extends Gui
Modifier and Type | Field and Description |
---|---|
protected boolean |
animateOverlayMessageColor |
protected java.lang.String |
displayedSubTitle
The current sub-title displayed
|
protected java.lang.String |
displayedTitle
The current title displayed
|
protected long |
healthUpdateCounter
Used with updateCounter to make the heart bar flash
|
protected ItemStack |
highlightingItemStack
The ItemStack that is currently being highlighted
|
protected RenderItem |
itemRenderer |
protected int |
lastPlayerHealth |
protected long |
lastSystemTime
The last recorded system time
|
protected Minecraft |
mc |
protected GuiBossOverlay |
overlayBoss |
protected GuiOverlayDebug |
overlayDebug |
protected java.lang.String |
overlayMessage
The string specifying which record music is playing
|
protected int |
overlayMessageTime
How many ticks the record playing message will be displayed
|
protected GuiPlayerTabOverlay |
overlayPlayerList |
protected GuiSubtitleOverlay |
overlaySubtitle |
protected GuiNewChat |
persistantChatGUI
ChatGUI instance that retains all previous chat data
|
protected int |
playerHealth |
float |
prevVignetteBrightness
Previous frame vignette brightness (slowly changes by 1% each frame)
|
protected static ResourceLocation |
PUMPKIN_BLUR_TEX_PATH |
protected java.util.Random |
rand |
protected int |
remainingHighlightTicks
Remaining ticks the item highlight should be visible
|
protected GuiSpectator |
spectatorGui
The spectator GUI for this in-game GUI instance
|
protected int |
titleDisplayTime
The time that the title is display
|
protected int |
titleFadeIn
The time that the title take to fade in
|
protected int |
titleFadeOut
The time that the title take to fade out
|
protected int |
titlesTimer
A timer for the current title and subtitle displayed
|
protected int |
updateCounter |
protected static ResourceLocation |
VIGNETTE_TEX_PATH |
protected static ResourceLocation |
WIDGETS_TEX_PATH |
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Modifier and Type | Method and Description |
---|---|
void |
displayTitle(java.lang.String title,
java.lang.String subTitle,
int timeFadeIn,
int displayTime,
int timeFadeOut) |
GuiBossOverlay |
getBossOverlay()
Accessor for the GuiBossOverlay
|
GuiNewChat |
getChatGUI()
returns a pointer to the persistant Chat GUI, containing all previous chat messages and such
|
FontRenderer |
getFontRenderer() |
GuiSpectator |
getSpectatorGui() |
GuiPlayerTabOverlay |
getTabList() |
int |
getUpdateCounter() |
protected void |
renderAttackIndicator(float p_184045_1_,
ScaledResolution p_184045_2_) |
void |
renderDemo(ScaledResolution scaledRes) |
void |
renderExpBar(ScaledResolution scaledRes,
int x) |
void |
renderGameOverlay(float partialTicks) |
void |
renderHorseJumpBar(ScaledResolution scaledRes,
int x) |
protected void |
renderHotbar(ScaledResolution sr,
float partialTicks) |
protected void |
renderHotbarItem(int p_184044_1_,
int p_184044_2_,
float p_184044_3_,
EntityPlayer player,
ItemStack stack) |
protected void |
renderMountHealth(ScaledResolution p_184047_1_) |
protected void |
renderPlayerStats(ScaledResolution scaledRes) |
protected void |
renderPortal(float timeInPortal,
ScaledResolution scaledRes) |
protected void |
renderPotionEffects(ScaledResolution resolution) |
protected void |
renderPumpkinOverlay(ScaledResolution scaledRes) |
protected void |
renderScoreboard(ScoreObjective objective,
ScaledResolution scaledRes) |
void |
renderSelectedItem(ScaledResolution scaledRes) |
protected void |
renderVignette(float lightLevel,
ScaledResolution scaledRes)
Renders a Vignette arount the entire screen that changes with light level.
|
void |
resetPlayersOverlayFooterHeader()
Reset the GuiPlayerTabOverlay's message header and footer
|
void |
setDefaultTitlesTimes()
Set the differents times for the titles to their default values
|
void |
setOverlayMessage(ITextComponent component,
boolean animateColor) |
void |
setOverlayMessage(java.lang.String message,
boolean animateColor) |
void |
setRecordPlayingMessage(java.lang.String recordName) |
void |
updateTick()
The update tick for the ingame UI
|
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
protected static final ResourceLocation VIGNETTE_TEX_PATH
protected static final ResourceLocation WIDGETS_TEX_PATH
protected static final ResourceLocation PUMPKIN_BLUR_TEX_PATH
protected final java.util.Random rand
protected final Minecraft mc
protected final RenderItem itemRenderer
protected final GuiNewChat persistantChatGUI
protected int updateCounter
protected java.lang.String overlayMessage
protected int overlayMessageTime
protected boolean animateOverlayMessageColor
public float prevVignetteBrightness
protected int remainingHighlightTicks
protected ItemStack highlightingItemStack
protected final GuiOverlayDebug overlayDebug
protected final GuiSubtitleOverlay overlaySubtitle
protected final GuiSpectator spectatorGui
protected final GuiPlayerTabOverlay overlayPlayerList
protected final GuiBossOverlay overlayBoss
protected int titlesTimer
protected java.lang.String displayedTitle
protected java.lang.String displayedSubTitle
protected int titleFadeIn
protected int titleDisplayTime
protected int titleFadeOut
protected int playerHealth
protected int lastPlayerHealth
protected long lastSystemTime
protected long healthUpdateCounter
public GuiIngame(Minecraft mcIn)
public void setDefaultTitlesTimes()
public void renderGameOverlay(float partialTicks)
protected void renderAttackIndicator(float p_184045_1_, ScaledResolution p_184045_2_)
protected void renderPotionEffects(ScaledResolution resolution)
protected void renderHotbar(ScaledResolution sr, float partialTicks)
public void renderHorseJumpBar(ScaledResolution scaledRes, int x)
public void renderExpBar(ScaledResolution scaledRes, int x)
public void renderSelectedItem(ScaledResolution scaledRes)
public void renderDemo(ScaledResolution scaledRes)
protected void renderScoreboard(ScoreObjective objective, ScaledResolution scaledRes)
protected void renderPlayerStats(ScaledResolution scaledRes)
protected void renderMountHealth(ScaledResolution p_184047_1_)
protected void renderPumpkinOverlay(ScaledResolution scaledRes)
protected void renderVignette(float lightLevel, ScaledResolution scaledRes)
protected void renderPortal(float timeInPortal, ScaledResolution scaledRes)
protected void renderHotbarItem(int p_184044_1_, int p_184044_2_, float p_184044_3_, EntityPlayer player, ItemStack stack)
public void updateTick()
public void setRecordPlayingMessage(java.lang.String recordName)
public void setOverlayMessage(java.lang.String message, boolean animateColor)
public void displayTitle(java.lang.String title, java.lang.String subTitle, int timeFadeIn, int displayTime, int timeFadeOut)
public void setOverlayMessage(ITextComponent component, boolean animateColor)
public GuiNewChat getChatGUI()
public int getUpdateCounter()
public FontRenderer getFontRenderer()
public GuiSpectator getSpectatorGui()
public GuiPlayerTabOverlay getTabList()
public void resetPlayersOverlayFooterHeader()
public GuiBossOverlay getBossOverlay()