类 Gui
java.lang.Object
net.minecraft.client.gui.Gui
- 直接已知子类:
ForgeGui
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明protected 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private boolean
canRenderCrosshairForSpectator
(HitResult pRayTrace) void
clear()
void
void
displayScoreboardSidebar
(GuiGraphics pGuiGraphics, Objective pObjective) protected void
drawBackdrop
(GuiGraphics pGuiGraphics, Font pFont, int p_93042_, int pWidth, int pHeight) private Player
getChat()
getFont()
int
private LivingEntity
private int
getVehicleMaxHearts
(LivingEntity pMountEntity) private int
getVisibleVehicleHeartRows
(int pMountHealth) boolean
void
void
render
(GuiGraphics pGuiGraphics, float pPartialTick) void
renderCrosshair
(GuiGraphics pGuiGraphics) void
renderDemoOverlay
(GuiGraphics pGuiGraphics) void
renderEffects
(GuiGraphics pGuiGraphics) void
renderExperienceBar
(GuiGraphics pGuiGraphics, int pX) private void
renderHeart
(GuiGraphics pGuiGraphics, Gui.HeartType pHeartType, int pX, int pY, int pYOffset, boolean pRenderHighlight, boolean pHalfHeart) protected void
renderHearts
(GuiGraphics pGuiGraphics, Player pPlayer, int pX, int pY, int pHeight, int pOffsetHeartIndex, float pMaxHealth, int pCurrentHealth, int pDisplayHealth, int pAbsorptionAmount, boolean pRenderHighlight) void
renderHotbar
(float pPartialTick, GuiGraphics pGuiGraphics) void
renderJumpMeter
(PlayerRideableJumping pRideable, GuiGraphics pGuiGraphics, int pX) private void
renderPlayerHealth
(GuiGraphics pGuiGraphics) protected void
renderPortalOverlay
(GuiGraphics pGuiGraphics, float pAlpha) private void
renderSavingIndicator
(GuiGraphics pGuiGraphics) void
renderSelectedItemName
(GuiGraphics pGuiGraphics) void
renderSelectedItemName
(GuiGraphics pGuiGraphics, int yShift) private void
renderSlot
(GuiGraphics pGuiGraphics, int pX, int pY, float pPartialTick, Player pPlayer, ItemStack pStack, int pSeed) void
renderSpyglassOverlay
(GuiGraphics pGuiGraphics, float pScopeScale) protected void
renderTextureOverlay
(GuiGraphics pGuiGraphics, ResourceLocation pShaderLocation, float pAlpha) private void
renderVehicleHealth
(GuiGraphics pGuiGraphics) void
renderVignette
(GuiGraphics pGuiGraphics, Entity pEntity) void
void
setChatDisabledByPlayerShown
(boolean pChatDisabledByPlayerShown) void
setNowPlaying
(Component pDisplayName) void
setOverlayMessage
(Component pComponent, boolean pAnimateColor) void
setSubtitle
(Component pSubtitle) void
setTimes
(int pTitleFadeInTime, int pTitleStayTime, int pTitleFadeOutTime) void
private void
tick()
void
tick
(boolean pPause) private void
private void
updateVignetteBrightness
(Entity pEntity)
-
字段详细资料
-
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- 另请参阅:
-
MIN_CROSSHAIR_ATTACK_SPEED
protected static final float MIN_CROSSHAIR_ATTACK_SPEED- 另请参阅:
-
NUM_HEARTS_PER_ROW
protected static final int NUM_HEARTS_PER_ROW- 另请参阅:
-
LINE_HEIGHT
protected static final int LINE_HEIGHT- 另请参阅:
-
SPACER
- 另请参阅:
-
PORTAL_OVERLAY_ALPHA_MIN
protected static final float PORTAL_OVERLAY_ALPHA_MIN- 另请参阅:
-
HEART_SIZE
protected static final int HEART_SIZE- 另请参阅:
-
HEART_SEPARATION
protected static final int HEART_SEPARATION- 另请参阅:
-
AUTOSAVE_FADE_SPEED_FACTOR
protected static final float AUTOSAVE_FADE_SPEED_FACTOR- 另请参阅:
-
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
-
-
构造器详细资料
-
Gui
-
-
方法详细资料
-
resetTitleTimes
public void resetTitleTimes() -
render
-
drawBackdrop
protected void drawBackdrop(GuiGraphics pGuiGraphics, Font pFont, int p_93042_, int pWidth, int pHeight) -
renderCrosshair
-
canRenderCrosshairForSpectator
-
renderEffects
-
renderHotbar
-
renderJumpMeter
-
renderExperienceBar
-
renderSelectedItemName
-
renderSelectedItemName
-
renderDemoOverlay
-
displayScoreboardSidebar
-
getCameraPlayer
-
getPlayerVehicleWithHealth
-
getVehicleMaxHearts
-
getVisibleVehicleHeartRows
private int getVisibleVehicleHeartRows(int pMountHealth) -
renderPlayerHealth
-
renderHearts
protected void renderHearts(GuiGraphics pGuiGraphics, Player pPlayer, int pX, int pY, int pHeight, int pOffsetHeartIndex, float pMaxHealth, int pCurrentHealth, int pDisplayHealth, int pAbsorptionAmount, boolean pRenderHighlight) -
renderHeart
private void renderHeart(GuiGraphics pGuiGraphics, Gui.HeartType pHeartType, int pX, int pY, int pYOffset, boolean pRenderHighlight, boolean pHalfHeart) -
renderVehicleHealth
-
renderTextureOverlay
protected void renderTextureOverlay(GuiGraphics pGuiGraphics, ResourceLocation pShaderLocation, float pAlpha) -
renderSpyglassOverlay
-
updateVignetteBrightness
-
renderVignette
-
renderPortalOverlay
-
renderSlot
private void renderSlot(GuiGraphics pGuiGraphics, int pX, int pY, float pPartialTick, Player pPlayer, ItemStack pStack, int pSeed) -
tick
public void tick(boolean pPause) -
tick
private void tick() -
tickAutosaveIndicator
private void tickAutosaveIndicator() -
setNowPlaying
-
setOverlayMessage
-
setChatDisabledByPlayerShown
public void setChatDisabledByPlayerShown(boolean pChatDisabledByPlayerShown) -
isShowingChatDisabledByPlayer
public boolean isShowingChatDisabledByPlayer() -
setTimes
public void setTimes(int pTitleFadeInTime, int pTitleStayTime, int pTitleFadeOutTime) -
setSubtitle
-
setTitle
-
clear
public void clear() -
getChat
-
getGuiTicks
public int getGuiTicks() -
getFont
-
getSpectatorGui
-
getTabList
-
onDisconnected
public void onDisconnected() -
getBossOverlay
-
clearCache
public void clearCache() -
renderSavingIndicator
-