Package net.minecraft.client.gui
Class GuiGraphics
java.lang.Object
net.minecraft.client.gui.GuiGraphics
- All Implemented Interfaces:
IForgeGuiGraphics
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MultiBufferSource.BufferSource
private static final int
private boolean
static final float
static final float
private final Minecraft
private final PoseStack
private final GuiGraphics.ScissorStack
private ItemStack
Fields inherited from interface net.minecraftforge.client.extensions.IForgeGuiGraphics
DEFAULT_BACKGROUND_COLOR, DEFAULT_BORDER_COLOR_END, DEFAULT_BORDER_COLOR_START, INVALID, RESET_CHAR, TEXT_COLOR_CODES, UNDO_CHAR, VALID
-
Constructor Summary
ModifierConstructorDescriptionprivate
GuiGraphics
(Minecraft p_282144_, PoseStack p_281551_, MultiBufferSource.BufferSource p_281460_) GuiGraphics
(Minecraft p_283406_, MultiBufferSource.BufferSource p_282238_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyScissor
(@Nullable ScreenRectangle p_281569_) void
blit
(int p_282225_, int p_281487_, int p_281985_, int p_281329_, int p_283035_, TextureAtlasSprite p_281614_) void
blit
(int p_282416_, int p_282989_, int p_282618_, int p_282755_, int p_281717_, TextureAtlasSprite p_281874_, float p_283559_, float p_282730_, float p_283530_, float p_282246_) void
blit
(ResourceLocation p_283272_, int p_283605_, int p_281879_, float p_282809_, float p_282942_, int p_281922_, int p_282385_, int p_282596_, int p_281699_) void
blit
(ResourceLocation p_283573_, int p_283574_, int p_283670_, int p_283545_, float p_283029_, float p_283061_, int p_282845_, int p_282558_, int p_282832_, int p_281851_) void
blit
(ResourceLocation p_282034_, int p_283671_, int p_282377_, int p_282058_, int p_281939_, float p_282285_, float p_283199_, int p_282186_, int p_282322_, int p_282481_, int p_281887_) void
blit
(ResourceLocation p_283377_, int p_281970_, int p_282111_, int p_283134_, int p_282778_, int p_281478_, int p_281821_) (package private) void
blit
(ResourceLocation p_282639_, int p_282732_, int p_283541_, int p_281760_, int p_283298_, int p_283429_, int p_282193_, int p_281980_, float p_282660_, float p_281522_, int p_282315_, int p_281436_) void
blitNineSliced
(ResourceLocation p_282546_, int p_282275_, int p_281581_, int p_283274_, int p_281626_, int p_283005_, int p_282047_, int p_282125_, int p_283423_, int p_281424_) void
blitNineSliced
(ResourceLocation p_282543_, int p_281513_, int p_281865_, int p_282482_, int p_282661_, int p_282068_, int p_281294_, int p_281681_, int p_281957_, int p_282300_, int p_282769_) void
blitNineSliced
(ResourceLocation p_282712_, int p_283509_, int p_283259_, int p_283273_, int p_282043_, int p_281430_, int p_281412_, int p_282566_, int p_281971_, int p_282879_, int p_281529_, int p_281924_, int p_281407_) void
blitRepeating
(ResourceLocation p_283059_, int p_283575_, int p_283192_, int p_281790_, int p_283642_, int p_282691_, int p_281912_, int p_281728_, int p_282324_) void
blitRepeating
(ResourceLocation p_283059_, int p_283575_, int p_283192_, int p_281790_, int p_283642_, int p_282691_, int p_281912_, int p_281728_, int p_282324_, int textureWidth, int textureHeight) void
void
drawCenteredString
(Font p_282122_, String p_282898_, int p_281490_, int p_282853_, int p_281258_) void
drawCenteredString
(Font p_282901_, Component p_282456_, int p_283083_, int p_282276_, int p_281457_) void
drawCenteredString
(Font p_282592_, FormattedCharSequence p_281854_, int p_281573_, int p_283511_, int p_282577_) void
drawManaged
(Runnable p_286277_) Deprecated.int
drawString
(Font p_283343_, @Nullable String p_281896_, float p_283569_, float p_283418_, int p_281560_, boolean p_282130_) int
drawString
(Font p_282003_, @Nullable String p_281403_, int p_282714_, int p_282041_, int p_281908_) int
drawString
(Font p_283343_, @Nullable String p_281896_, int p_283569_, int p_283418_, int p_281560_, boolean p_282130_) int
drawString
(Font p_281653_, Component p_283140_, int p_283102_, int p_282347_, int p_281429_) int
drawString
(Font p_281547_, Component p_282131_, int p_282857_, int p_281250_, int p_282195_, boolean p_282791_) int
drawString
(Font p_282636_, FormattedCharSequence p_281596_, float p_281586_, float p_282816_, int p_281743_, boolean p_282394_) int
drawString
(Font p_283019_, FormattedCharSequence p_283376_, int p_283379_, int p_283346_, int p_282119_) int
drawString
(Font p_282636_, FormattedCharSequence p_281596_, int p_281586_, int p_282816_, int p_281743_, boolean p_282394_) void
drawWordWrap
(Font p_281494_, FormattedText p_283463_, int p_282183_, int p_283250_, int p_282564_, int p_282629_) void
enableScissor
(int p_281479_, int p_282788_, int p_282924_, int p_282826_) void
fill
(int p_282988_, int p_282861_, int p_281278_, int p_281710_, int p_281470_) void
fill
(int p_281437_, int p_283660_, int p_282606_, int p_283413_, int p_283428_, int p_283253_) void
fill
(RenderType p_286602_, int p_286738_, int p_286614_, int p_286741_, int p_286610_, int p_286560_) void
fill
(RenderType p_286711_, int p_286234_, int p_286444_, int p_286244_, int p_286411_, int p_286671_, int p_286599_) void
fillGradient
(int p_283290_, int p_283278_, int p_282670_, int p_281698_, int p_283374_, int p_283076_) void
fillGradient
(int p_282702_, int p_282331_, int p_281415_, int p_283118_, int p_282419_, int p_281954_, int p_282607_) private void
fillGradient
(VertexConsumer p_286862_, int p_283414_, int p_281397_, int p_283587_, int p_281521_, int p_283505_, int p_283131_, int p_282949_) void
fillGradient
(RenderType p_286522_, int p_286535_, int p_286839_, int p_286242_, int p_286856_, int p_286809_, int p_286833_, int p_286706_) void
flush()
private void
Deprecated.private void
Deprecated.int
int
guiWidth()
void
hLine
(int p_283318_, int p_281662_, int p_281346_, int p_281672_) void
hLine
(RenderType p_286630_, int p_286453_, int p_286247_, int p_286814_, int p_286623_) (package private) void
innerBlit
(ResourceLocation p_283461_, int p_281399_, int p_283222_, int p_283615_, int p_283430_, int p_281729_, float p_283247_, float p_282598_, float p_282883_, float p_283017_) (package private) void
innerBlit
(ResourceLocation p_283254_, int p_283092_, int p_281930_, int p_282113_, int p_281388_, int p_283583_, float p_281327_, float p_281676_, float p_283166_, float p_282630_, float p_282800_, float p_282850_, float p_282375_, float p_282754_) pose()
void
renderComponentHoverEffect
(Font p_282584_, @Nullable Style p_282156_, int p_283623_, int p_282114_) void
renderComponentTooltip
(Font font, List<? extends FormattedText> tooltips, int mouseX, int mouseY, ItemStack stack) void
renderComponentTooltip
(Font p_282739_, List<Component> p_281832_, int p_282191_, int p_282446_) void
renderFakeItem
(ItemStack p_281946_, int p_283299_, int p_283674_) private void
renderItem
(@Nullable LivingEntity p_283524_, @Nullable Level p_282461_, ItemStack p_283653_, int p_283141_, int p_282560_, int p_282425_) private void
renderItem
(@Nullable LivingEntity p_282619_, @Nullable Level p_281754_, ItemStack p_281675_, int p_281271_, int p_282210_, int p_283260_, int p_281995_) void
renderItem
(LivingEntity p_282154_, ItemStack p_282777_, int p_282110_, int p_281371_, int p_283572_) void
renderItem
(ItemStack p_281978_, int p_282647_, int p_281944_) void
renderItem
(ItemStack p_282262_, int p_283221_, int p_283496_, int p_283435_) void
renderItem
(ItemStack p_282786_, int p_282502_, int p_282976_, int p_281592_, int p_282314_) void
renderItemDecorations
(Font p_281721_, ItemStack p_281514_, int p_282056_, int p_282683_) void
renderItemDecorations
(Font p_282005_, ItemStack p_283349_, int p_282641_, int p_282146_, @Nullable String p_282803_) void
renderOutline
(int p_281496_, int p_282076_, int p_281334_, int p_283576_, int p_283618_) void
renderTooltip
(Font p_282192_, List<? extends FormattedCharSequence> p_282297_, int p_281680_, int p_283325_) void
renderTooltip
(Font p_283128_, List<Component> p_282716_, Optional<TooltipComponent> p_281682_, int p_283678_, int p_281696_) void
renderTooltip
(Font font, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, ItemStack stack, int mouseX, int mouseY) void
renderTooltip
(Font p_281627_, List<FormattedCharSequence> p_283313_, ClientTooltipPositioner p_283571_, int p_282367_, int p_282806_) void
renderTooltip
(Font p_282269_, Component p_282572_, int p_282044_, int p_282545_) void
renderTooltip
(Font p_282308_, ItemStack p_282781_, int p_282687_, int p_282292_) private void
renderTooltipInternal
(Font p_282675_, List<ClientTooltipComponent> p_282615_, int p_283230_, int p_283417_, ClientTooltipPositioner p_282442_) void
setColor
(float p_281272_, float p_281734_, float p_282022_, float p_281752_) private static it.unimi.dsi.fastutil.ints.IntIterator
slices
(int p_282197_, int p_282161_) void
vLine
(int p_282951_, int p_281591_, int p_281568_, int p_282718_) void
vLine
(RenderType p_286607_, int p_286309_, int p_286480_, int p_286707_, int p_286855_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.extensions.IForgeGuiGraphics
blitInscribed, blitInscribed, blitNineSlicedSized, blitNineSlicedSized, blitNineSlicedSized, blitWithBorder, blitWithBorder, getColorFromFormattingCharacter
-
Field Details
-
MAX_GUI_Z
public static final float MAX_GUI_Z- See Also:
-
MIN_GUI_Z
public static final float MIN_GUI_Z- See Also:
-
EXTRA_SPACE_AFTER_FIRST_TOOLTIP_LINE
private static final int EXTRA_SPACE_AFTER_FIRST_TOOLTIP_LINE- See Also:
-
minecraft
-
pose
-
bufferSource
-
scissorStack
-
managed
private boolean managed -
tooltipStack
-
-
Constructor Details
-
GuiGraphics
private GuiGraphics(Minecraft p_282144_, PoseStack p_281551_, MultiBufferSource.BufferSource p_281460_) -
GuiGraphics
-
-
Method Details
-
drawManaged
Deprecated. -
flushIfUnmanaged
Deprecated. -
flushIfManaged
Deprecated. -
guiWidth
public int guiWidth() -
guiHeight
public int guiHeight() -
pose
-
bufferSource
-
flush
public void flush() -
hLine
public void hLine(int p_283318_, int p_281662_, int p_281346_, int p_281672_) -
hLine
-
vLine
public void vLine(int p_282951_, int p_281591_, int p_281568_, int p_282718_) -
vLine
-
enableScissor
public void enableScissor(int p_281479_, int p_282788_, int p_282924_, int p_282826_) -
disableScissor
public void disableScissor() -
setColor
public void setColor(float p_281272_, float p_281734_, float p_282022_, float p_281752_) -
fill
public void fill(int p_282988_, int p_282861_, int p_281278_, int p_281710_, int p_281470_) -
fill
public void fill(int p_281437_, int p_283660_, int p_282606_, int p_283413_, int p_283428_, int p_283253_) -
fill
public void fill(RenderType p_286602_, int p_286738_, int p_286614_, int p_286741_, int p_286610_, int p_286560_) -
fill
public void fill(RenderType p_286711_, int p_286234_, int p_286444_, int p_286244_, int p_286411_, int p_286671_, int p_286599_) -
fillGradient
public void fillGradient(int p_283290_, int p_283278_, int p_282670_, int p_281698_, int p_283374_, int p_283076_) -
fillGradient
public void fillGradient(int p_282702_, int p_282331_, int p_281415_, int p_283118_, int p_282419_, int p_281954_, int p_282607_) -
fillGradient
public void fillGradient(RenderType p_286522_, int p_286535_, int p_286839_, int p_286242_, int p_286856_, int p_286809_, int p_286833_, int p_286706_) -
fillGradient
private void fillGradient(VertexConsumer p_286862_, int p_283414_, int p_281397_, int p_283587_, int p_281521_, int p_283505_, int p_283131_, int p_282949_) -
drawCenteredString
-
drawCenteredString
-
drawCenteredString
public void drawCenteredString(Font p_282592_, FormattedCharSequence p_281854_, int p_281573_, int p_283511_, int p_282577_) -
drawString
-
drawString
-
drawString
-
drawString
public int drawString(Font p_283019_, FormattedCharSequence p_283376_, int p_283379_, int p_283346_, int p_282119_) -
drawString
public int drawString(Font p_282636_, FormattedCharSequence p_281596_, int p_281586_, int p_282816_, int p_281743_, boolean p_282394_) -
drawString
public int drawString(Font p_282636_, FormattedCharSequence p_281596_, float p_281586_, float p_282816_, int p_281743_, boolean p_282394_) -
drawString
-
drawString
-
drawWordWrap
public void drawWordWrap(Font p_281494_, FormattedText p_283463_, int p_282183_, int p_283250_, int p_282564_, int p_282629_) -
blit
public void blit(int p_282225_, int p_281487_, int p_281985_, int p_281329_, int p_283035_, TextureAtlasSprite p_281614_) -
blit
public void blit(int p_282416_, int p_282989_, int p_282618_, int p_282755_, int p_281717_, TextureAtlasSprite p_281874_, float p_283559_, float p_282730_, float p_283530_, float p_282246_) -
renderOutline
public void renderOutline(int p_281496_, int p_282076_, int p_281334_, int p_283576_, int p_283618_) -
blit
public void blit(ResourceLocation p_283377_, int p_281970_, int p_282111_, int p_283134_, int p_282778_, int p_281478_, int p_281821_) -
blit
public void blit(ResourceLocation p_283573_, int p_283574_, int p_283670_, int p_283545_, float p_283029_, float p_283061_, int p_282845_, int p_282558_, int p_282832_, int p_281851_) -
blit
public void blit(ResourceLocation p_282034_, int p_283671_, int p_282377_, int p_282058_, int p_281939_, float p_282285_, float p_283199_, int p_282186_, int p_282322_, int p_282481_, int p_281887_) -
blit
public void blit(ResourceLocation p_283272_, int p_283605_, int p_281879_, float p_282809_, float p_282942_, int p_281922_, int p_282385_, int p_282596_, int p_281699_) -
blit
void blit(ResourceLocation p_282639_, int p_282732_, int p_283541_, int p_281760_, int p_283298_, int p_283429_, int p_282193_, int p_281980_, float p_282660_, float p_281522_, int p_282315_, int p_281436_) -
innerBlit
void innerBlit(ResourceLocation p_283461_, int p_281399_, int p_283222_, int p_283615_, int p_283430_, int p_281729_, float p_283247_, float p_282598_, float p_282883_, float p_283017_) -
innerBlit
void innerBlit(ResourceLocation p_283254_, int p_283092_, int p_281930_, int p_282113_, int p_281388_, int p_283583_, float p_281327_, float p_281676_, float p_283166_, float p_282630_, float p_282800_, float p_282850_, float p_282375_, float p_282754_) -
blitNineSliced
public void blitNineSliced(ResourceLocation p_282546_, int p_282275_, int p_281581_, int p_283274_, int p_281626_, int p_283005_, int p_282047_, int p_282125_, int p_283423_, int p_281424_) -
blitNineSliced
public void blitNineSliced(ResourceLocation p_282543_, int p_281513_, int p_281865_, int p_282482_, int p_282661_, int p_282068_, int p_281294_, int p_281681_, int p_281957_, int p_282300_, int p_282769_) -
blitNineSliced
public void blitNineSliced(ResourceLocation p_282712_, int p_283509_, int p_283259_, int p_283273_, int p_282043_, int p_281430_, int p_281412_, int p_282566_, int p_281971_, int p_282879_, int p_281529_, int p_281924_, int p_281407_) -
blitRepeating
public void blitRepeating(ResourceLocation p_283059_, int p_283575_, int p_283192_, int p_281790_, int p_283642_, int p_282691_, int p_281912_, int p_281728_, int p_282324_) -
blitRepeating
public void blitRepeating(ResourceLocation p_283059_, int p_283575_, int p_283192_, int p_281790_, int p_283642_, int p_282691_, int p_281912_, int p_281728_, int p_282324_, int textureWidth, int textureHeight) -
slices
private static it.unimi.dsi.fastutil.ints.IntIterator slices(int p_282197_, int p_282161_) -
renderItem
-
renderItem
-
renderItem
public void renderItem(ItemStack p_282786_, int p_282502_, int p_282976_, int p_281592_, int p_282314_) -
renderFakeItem
-
renderItem
public void renderItem(LivingEntity p_282154_, ItemStack p_282777_, int p_282110_, int p_281371_, int p_283572_) -
renderItem
private void renderItem(@Nullable @Nullable LivingEntity p_283524_, @Nullable @Nullable Level p_282461_, ItemStack p_283653_, int p_283141_, int p_282560_, int p_282425_) -
renderItem
private void renderItem(@Nullable @Nullable LivingEntity p_282619_, @Nullable @Nullable Level p_281754_, ItemStack p_281675_, int p_281271_, int p_282210_, int p_283260_, int p_281995_) -
renderItemDecorations
-
renderItemDecorations
-
renderTooltip
-
renderTooltip
-
renderTooltip
public void renderTooltip(Font p_283128_, List<Component> p_282716_, Optional<TooltipComponent> p_281682_, int p_283678_, int p_281696_) -
renderTooltip
-
renderComponentTooltip
-
renderComponentTooltip
public void renderComponentTooltip(Font font, List<? extends FormattedText> tooltips, int mouseX, int mouseY, ItemStack stack) -
renderTooltip
public void renderTooltip(Font p_282192_, List<? extends FormattedCharSequence> p_282297_, int p_281680_, int p_283325_) -
renderTooltip
public void renderTooltip(Font p_281627_, List<FormattedCharSequence> p_283313_, ClientTooltipPositioner p_283571_, int p_282367_, int p_282806_) -
renderTooltipInternal
private void renderTooltipInternal(Font p_282675_, List<ClientTooltipComponent> p_282615_, int p_283230_, int p_283417_, ClientTooltipPositioner p_282442_) -
renderComponentHoverEffect
-