类 Gui
java.lang.Object
net.minecraft.client.gui.Gui
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final float
private static final float
private static final float
private static final float
private static final int
private static final int
private static final int
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private boolean
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final float
private float
private final BossHealthOverlay
private final ChatComponent
private boolean
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
protected DebugScreenOverlay
private static final Component
private int
private static final ResourceLocation
private static final ResourceLocation
private static final int
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private long
private static final int
private static final int
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private float
private int
private int
private long
private ItemStack
private final LayeredDraw
private static final int
private static final float
private final Minecraft
static final ResourceLocation
private static final int
private static final int
private static final int
private static final int
private Component
private int
private static final float
private static final ResourceLocation
private final RandomSource
private static final int
private static final int
private static final Component
private float
private static final Comparator
<PlayerScoreEntry> private static final String
private final SpectatorGui
private static final ResourceLocation
private Component
private final SubtitleOverlay
private final PlayerTabOverlay
private int
private Component
private int
private int
private int
private int
private int
private static final ResourceLocation
float
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private boolean
canRenderCrosshairForSpectator
(HitResult p_93025_) void
void
private void
displayScoreboardSidebar
(GuiGraphics p_282008_, Objective p_283455_) private int
getAirBubbleYLine
(int p_366666_, int p_361146_) private Player
getChat()
private static int
getCurrentAirSupplyBubble
(int p_364683_, int p_367314_, int p_368617_) private static int
getEmptyBubbleDelayDuration
(int p_363282_, boolean p_362908_) getFont()
int
private LivingEntity
private int
getVehicleMaxHearts
(LivingEntity p_93023_) private int
getVisibleVehicleHeartRows
(int p_93013_) private boolean
boolean
void
private void
playAirBubblePoppedSound
(int p_360863_, Player p_365458_, int p_362524_) void
render
(GuiGraphics p_282884_, DeltaTracker p_342095_) private void
renderAirBubbles
(GuiGraphics p_362039_, Player p_362951_, int p_361107_, int p_367174_, int p_368454_) private static void
renderArmor
(GuiGraphics p_332897_, Player p_332999_, int p_330861_, int p_331335_, int p_329919_, int p_329454_) private void
renderCameraOverlays
(GuiGraphics p_333627_, DeltaTracker p_344236_) private void
renderChat
(GuiGraphics p_329202_, DeltaTracker p_342328_) private void
renderConfusionOverlay
(GuiGraphics p_365616_, float p_366912_) private void
renderCrosshair
(GuiGraphics p_282828_, DeltaTracker p_343490_) private void
renderDemoOverlay
(GuiGraphics p_281825_, DeltaTracker p_343325_) private void
renderEffects
(GuiGraphics p_282812_, DeltaTracker p_343719_) private void
renderExperienceBar
(GuiGraphics p_281906_, int p_282731_) private void
renderExperienceLevel
(GuiGraphics p_335340_, DeltaTracker p_344840_) private void
renderFood
(GuiGraphics p_330960_, Player p_328268_, int p_331606_, int p_330339_) private void
renderHeart
(GuiGraphics p_283024_, Gui.HeartType p_281393_, int p_283636_, int p_283279_, boolean p_283440_, boolean p_282496_, boolean p_301416_) private 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_) private void
renderHotbarAndDecorations
(GuiGraphics p_333625_, DeltaTracker p_344796_) private void
renderItemHotbar
(GuiGraphics p_332738_, DeltaTracker p_342619_) private void
renderJumpMeter
(PlayerRideableJumping p_282774_, GuiGraphics p_282939_, int p_283351_) private void
renderOverlayMessage
(GuiGraphics p_330258_, DeltaTracker p_345514_) private void
renderPlayerHealth
(GuiGraphics p_283143_) private void
renderPortalOverlay
(GuiGraphics p_283375_, float p_283296_) void
renderSavingIndicator
(GuiGraphics p_282761_, DeltaTracker p_344404_) private void
renderScoreboardSidebar
(GuiGraphics p_332744_, DeltaTracker p_344235_) private void
renderSelectedItemName
(GuiGraphics p_283501_) void
renderSelectedItemName
(GuiGraphics p_283501_, int yShift) private void
renderSleepOverlay
(GuiGraphics p_329087_, DeltaTracker p_345225_) private void
renderSlot
(GuiGraphics p_283283_, int p_283213_, int p_281301_, DeltaTracker p_344149_, Player p_283644_, ItemStack p_283317_, int p_283261_) private void
renderSpyglassOverlay
(GuiGraphics p_282069_, float p_283442_) private void
renderTabList
(GuiGraphics p_330031_, DeltaTracker p_343599_) private void
renderTextureOverlay
(GuiGraphics p_282304_, ResourceLocation p_281622_, float p_281504_) private void
renderTitle
(GuiGraphics p_331218_, DeltaTracker p_344700_) private void
renderVehicleHealth
(GuiGraphics p_283368_) private 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_)
-
字段详细资料
-
CROSSHAIR_SPRITE
-
CROSSHAIR_ATTACK_INDICATOR_FULL_SPRITE
-
CROSSHAIR_ATTACK_INDICATOR_BACKGROUND_SPRITE
-
CROSSHAIR_ATTACK_INDICATOR_PROGRESS_SPRITE
-
EFFECT_BACKGROUND_AMBIENT_SPRITE
-
EFFECT_BACKGROUND_SPRITE
-
HOTBAR_SPRITE
-
HOTBAR_SELECTION_SPRITE
-
HOTBAR_OFFHAND_LEFT_SPRITE
-
HOTBAR_OFFHAND_RIGHT_SPRITE
-
HOTBAR_ATTACK_INDICATOR_BACKGROUND_SPRITE
-
HOTBAR_ATTACK_INDICATOR_PROGRESS_SPRITE
-
JUMP_BAR_BACKGROUND_SPRITE
-
JUMP_BAR_COOLDOWN_SPRITE
-
JUMP_BAR_PROGRESS_SPRITE
-
EXPERIENCE_BAR_BACKGROUND_SPRITE
-
EXPERIENCE_BAR_PROGRESS_SPRITE
-
ARMOR_EMPTY_SPRITE
-
ARMOR_HALF_SPRITE
-
ARMOR_FULL_SPRITE
-
FOOD_EMPTY_HUNGER_SPRITE
-
FOOD_HALF_HUNGER_SPRITE
-
FOOD_FULL_HUNGER_SPRITE
-
FOOD_EMPTY_SPRITE
-
FOOD_HALF_SPRITE
-
FOOD_FULL_SPRITE
-
AIR_SPRITE
-
AIR_POPPING_SPRITE
-
AIR_EMPTY_SPRITE
-
HEART_VEHICLE_CONTAINER_SPRITE
-
HEART_VEHICLE_FULL_SPRITE
-
HEART_VEHICLE_HALF_SPRITE
-
VIGNETTE_LOCATION
-
NAUSEA_LOCATION
-
SPYGLASS_SCOPE_LOCATION
-
POWDER_SNOW_OUTLINE_LOCATION
-
SCORE_DISPLAY_ORDER
-
DEMO_EXPIRED_TEXT
-
SAVING_TEXT
-
MIN_CROSSHAIR_ATTACK_SPEED
private static final float MIN_CROSSHAIR_ATTACK_SPEED- 另请参阅:
-
NUM_HEARTS_PER_ROW
private static final int NUM_HEARTS_PER_ROW- 另请参阅:
-
LINE_HEIGHT
private static final int LINE_HEIGHT- 另请参阅:
-
SPACER
- 另请参阅:
-
PORTAL_OVERLAY_ALPHA_MIN
private static final float PORTAL_OVERLAY_ALPHA_MIN- 另请参阅:
-
HEART_SIZE
private static final int HEART_SIZE- 另请参阅:
-
HEART_SEPARATION
private static final int HEART_SEPARATION- 另请参阅:
-
NUM_AIR_BUBBLES
private static final int NUM_AIR_BUBBLES- 另请参阅:
-
AIR_BUBBLE_SIZE
private static final int AIR_BUBBLE_SIZE- 另请参阅:
-
AIR_BUBBLE_SEPERATION
private static final int AIR_BUBBLE_SEPERATION- 另请参阅:
-
AIR_BUBBLE_POPPING_DURATION
private static final int AIR_BUBBLE_POPPING_DURATION- 另请参阅:
-
EMPTY_AIR_BUBBLE_DELAY_DURATION
private static final int EMPTY_AIR_BUBBLE_DELAY_DURATION- 另请参阅:
-
AIR_BUBBLE_POP_SOUND_VOLUME_BASE
private static final float AIR_BUBBLE_POP_SOUND_VOLUME_BASE- 另请参阅:
-
AIR_BUBBLE_POP_SOUND_VOLUME_INCREMENT
private static final float AIR_BUBBLE_POP_SOUND_VOLUME_INCREMENT- 另请参阅:
-
AIR_BUBBLE_POP_SOUND_PITCH_BASE
private static final float AIR_BUBBLE_POP_SOUND_PITCH_BASE- 另请参阅:
-
AIR_BUBBLE_POP_SOUND_PITCH_INCREMENT
private static final float AIR_BUBBLE_POP_SOUND_PITCH_INCREMENT- 另请参阅:
-
NUM_AIR_BUBBLE_POPPED_BEFORE_SOUND_VOLUME_INCREASE
private static final int NUM_AIR_BUBBLE_POPPED_BEFORE_SOUND_VOLUME_INCREASE- 另请参阅:
-
NUM_AIR_BUBBLE_POPPED_BEFORE_SOUND_PITCH_INCREASE
private static final int NUM_AIR_BUBBLE_POPPED_BEFORE_SOUND_PITCH_INCREASE- 另请参阅:
-
AUTOSAVE_FADE_SPEED_FACTOR
private static final float AUTOSAVE_FADE_SPEED_FACTOR- 另请参阅:
-
SAVING_INDICATOR_WIDTH_PADDING_RIGHT
private static final int SAVING_INDICATOR_WIDTH_PADDING_RIGHT- 另请参阅:
-
SAVING_INDICATOR_HEIGHT_PADDING_BOTTOM
private static final int SAVING_INDICATOR_HEIGHT_PADDING_BOTTOM- 另请参阅:
-
random
-
minecraft
-
chat
-
tickCount
private int tickCount -
overlayMessageString
-
overlayMessageTime
private int overlayMessageTime -
animateOverlayMessageColor
private boolean animateOverlayMessageColor -
chatDisabledByPlayerShown
private boolean chatDisabledByPlayerShown -
vignetteBrightness
public float vignetteBrightness -
toolHighlightTimer
private int toolHighlightTimer -
lastToolHighlight
-
debugOverlay
-
subtitleOverlay
-
spectatorGui
-
tabList
-
bossOverlay
-
titleTime
private int titleTime -
title
-
subtitle
-
titleFadeInTime
private int titleFadeInTime -
titleStayTime
private int titleStayTime -
titleFadeOutTime
private int titleFadeOutTime -
lastHealth
private int lastHealth -
displayHealth
private int displayHealth -
lastHealthTime
private long lastHealthTime -
healthBlinkTime
private long healthBlinkTime -
lastBubblePopSoundPlayed
private int lastBubblePopSoundPlayed -
autosaveIndicatorValue
private float autosaveIndicatorValue -
lastAutosaveIndicatorValue
private float lastAutosaveIndicatorValue -
layers
-
scopeScale
private float scopeScale
-
-
构造器详细资料
-
Gui
-
-
方法详细资料
-
resetTitleTimes
public void resetTitleTimes() -
render
-
renderCameraOverlays
-
renderSleepOverlay
-
renderOverlayMessage
-
renderTitle
-
renderChat
-
renderScoreboardSidebar
-
renderTabList
-
renderCrosshair
-
canRenderCrosshairForSpectator
-
renderEffects
-
renderHotbarAndDecorations
-
renderItemHotbar
-
renderJumpMeter
-
renderExperienceBar
-
renderExperienceLevel
-
isExperienceBarVisible
private boolean isExperienceBarVisible() -
renderSelectedItemName
-
renderSelectedItemName
-
renderDemoOverlay
-
displayScoreboardSidebar
-
getCameraPlayer
-
getPlayerVehicleWithHealth
-
getVehicleMaxHearts
-
getVisibleVehicleHeartRows
private int getVisibleVehicleHeartRows(int p_93013_) -
renderPlayerHealth
-
renderArmor
private static void renderArmor(GuiGraphics p_332897_, Player p_332999_, int p_330861_, int p_331335_, int p_329919_, int p_329454_) -
renderHearts
private 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_, boolean p_283440_, boolean p_282496_, boolean p_301416_) -
renderAirBubbles
private void renderAirBubbles(GuiGraphics p_362039_, Player p_362951_, int p_361107_, int p_367174_, int p_368454_) -
getAirBubbleYLine
private int getAirBubbleYLine(int p_366666_, int p_361146_) -
getCurrentAirSupplyBubble
private static int getCurrentAirSupplyBubble(int p_364683_, int p_367314_, int p_368617_) -
getEmptyBubbleDelayDuration
private static int getEmptyBubbleDelayDuration(int p_363282_, boolean p_362908_) -
playAirBubblePoppedSound
-
renderFood
-
renderVehicleHealth
-
renderTextureOverlay
private void renderTextureOverlay(GuiGraphics p_282304_, ResourceLocation p_281622_, float p_281504_) -
renderSpyglassOverlay
-
updateVignetteBrightness
-
renderVignette
-
renderPortalOverlay
-
renderConfusionOverlay
-
renderSlot
private void renderSlot(GuiGraphics p_283283_, int p_283213_, int p_281301_, DeltaTracker p_344149_, 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
-
clearTitles
public void clearTitles() -
getChat
-
getGuiTicks
public int getGuiTicks() -
getFont
-
getSpectatorGui
-
getTabList
-
onDisconnected
public void onDisconnected() -
getBossOverlay
-
getDebugOverlay
-
clearCache
public void clearCache() -
renderSavingIndicator
-