类 Gui

java.lang.Object
net.minecraft.client.gui.Gui
直接已知子类:
ForgeGui

public class Gui extends Object
  • 字段详细资料

    • 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
    • SPYGLASS_SCOPE_LOCATION

      protected static final ResourceLocation SPYGLASS_SCOPE_LOCATION
    • POWDER_SNOW_OUTLINE_LOCATION

      protected static final ResourceLocation POWDER_SNOW_OUTLINE_LOCATION
    • GUI_ICONS_LOCATION

      protected static final ResourceLocation GUI_ICONS_LOCATION
    • DEMO_EXPIRED_TEXT

      protected static final Component DEMO_EXPIRED_TEXT
    • SAVING_TEXT

      protected static final Component 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

      protected static final String 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

      protected final RandomSource random
    • minecraft

      protected final Minecraft minecraft
    • itemRenderer

      protected final ItemRenderer itemRenderer
    • chat

      protected final ChatComponent chat
    • tickCount

      protected int tickCount
    • overlayMessageString

      @Nullable protected Component overlayMessageString
    • overlayMessageTime

      protected int overlayMessageTime
    • animateOverlayMessageColor

      protected boolean animateOverlayMessageColor
    • chatDisabledByPlayerShown

      protected boolean chatDisabledByPlayerShown
    • vignetteBrightness

      public float vignetteBrightness
    • toolHighlightTimer

      protected int toolHighlightTimer
    • lastToolHighlight

      protected ItemStack lastToolHighlight
    • debugScreen

      protected final DebugScreenOverlay debugScreen
    • subtitleOverlay

      protected final SubtitleOverlay subtitleOverlay
    • spectatorGui

      protected final SpectatorGui spectatorGui
    • tabList

      protected final PlayerTabOverlay tabList
    • bossOverlay

      protected final BossHealthOverlay bossOverlay
    • titleTime

      protected int titleTime
    • title

      @Nullable protected Component title
    • subtitle

      @Nullable protected Component 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
  • 构造器详细资料

  • 方法详细资料

    • resetTitleTimes

      public void resetTitleTimes()
    • render

      public void render(GuiGraphics pGuiGraphics, float pPartialTick)
    • drawBackdrop

      protected void drawBackdrop(GuiGraphics pGuiGraphics, Font pFont, int p_93042_, int pWidth, int pHeight)
    • renderCrosshair

      public void renderCrosshair(GuiGraphics pGuiGraphics)
    • canRenderCrosshairForSpectator

      private boolean canRenderCrosshairForSpectator(HitResult pRayTrace)
    • renderEffects

      public void renderEffects(GuiGraphics pGuiGraphics)
    • renderHotbar

      public void renderHotbar(float pPartialTick, GuiGraphics pGuiGraphics)
    • renderJumpMeter

      public void renderJumpMeter(PlayerRideableJumping pRideable, GuiGraphics pGuiGraphics, int pX)
    • renderExperienceBar

      public void renderExperienceBar(GuiGraphics pGuiGraphics, int pX)
    • renderSelectedItemName

      public void renderSelectedItemName(GuiGraphics pGuiGraphics)
    • renderSelectedItemName

      public void renderSelectedItemName(GuiGraphics pGuiGraphics, int yShift)
    • renderDemoOverlay

      public void renderDemoOverlay(GuiGraphics pGuiGraphics)
    • displayScoreboardSidebar

      public void displayScoreboardSidebar(GuiGraphics pGuiGraphics, Objective pObjective)
    • getCameraPlayer

      private Player getCameraPlayer()
    • getPlayerVehicleWithHealth

      private LivingEntity getPlayerVehicleWithHealth()
    • getVehicleMaxHearts

      private int getVehicleMaxHearts(LivingEntity pMountEntity)
    • getVisibleVehicleHeartRows

      private int getVisibleVehicleHeartRows(int pMountHealth)
    • renderPlayerHealth

      private void renderPlayerHealth(GuiGraphics pGuiGraphics)
    • 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

      private void renderVehicleHealth(GuiGraphics pGuiGraphics)
    • renderTextureOverlay

      protected void renderTextureOverlay(GuiGraphics pGuiGraphics, ResourceLocation pShaderLocation, float pAlpha)
    • renderSpyglassOverlay

      public void renderSpyglassOverlay(GuiGraphics pGuiGraphics, float pScopeScale)
    • updateVignetteBrightness

      private void updateVignetteBrightness(Entity pEntity)
    • renderVignette

      public void renderVignette(GuiGraphics pGuiGraphics, Entity pEntity)
    • renderPortalOverlay

      protected void renderPortalOverlay(GuiGraphics pGuiGraphics, float pAlpha)
    • 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

      public void setNowPlaying(Component pDisplayName)
    • setOverlayMessage

      public void setOverlayMessage(Component pComponent, boolean pAnimateColor)
    • setChatDisabledByPlayerShown

      public void setChatDisabledByPlayerShown(boolean pChatDisabledByPlayerShown)
    • isShowingChatDisabledByPlayer

      public boolean isShowingChatDisabledByPlayer()
    • setTimes

      public void setTimes(int pTitleFadeInTime, int pTitleStayTime, int pTitleFadeOutTime)
    • setSubtitle

      public void setSubtitle(Component pSubtitle)
    • setTitle

      public void setTitle(Component pTitle)
    • clear

      public void clear()
    • getChat

      public ChatComponent getChat()
    • getGuiTicks

      public int getGuiTicks()
    • getFont

      public Font getFont()
    • getSpectatorGui

      public SpectatorGui getSpectatorGui()
    • getTabList

      public PlayerTabOverlay getTabList()
    • onDisconnected

      public void onDisconnected()
    • getBossOverlay

      public BossHealthOverlay getBossOverlay()
    • clearCache

      public void clearCache()
    • renderSavingIndicator

      private void renderSavingIndicator(GuiGraphics pGuiGraphics)