类 GuiGraphics
java.lang.Object
net.minecraft.client.gui.GuiGraphics
- 所有已实现的接口:
IForgeGuiGraphics
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final MultiBufferSource.BufferSource
private static final int
static final float
static final float
private final Minecraft
private final PoseStack
private final GuiGraphics.ScissorStack
private final ItemStackRenderState
private final GuiSpriteManager
private ItemStack
从接口继承的字段 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
-
构造器概要
构造器限定符构造器说明private
GuiGraphics
(Minecraft p_282144_, PoseStack p_281551_, MultiBufferSource.BufferSource p_281460_) GuiGraphics
(Minecraft p_283406_, MultiBufferSource.BufferSource p_282238_) -
方法概要
修饰符和类型方法说明private void
applyScissor
(ScreenRectangle p_281569_) void
blit
(Function<ResourceLocation, RenderType> p_365997_, ResourceLocation p_361724_, int p_282225_, int p_281487_, float p_365061_, float p_368643_, int p_281985_, int p_281329_, int p_283035_, int p_366975_) void
blit
(Function<ResourceLocation, RenderType> p_367278_, ResourceLocation p_282639_, int p_282732_, int p_283541_, float p_282660_, float p_281522_, int p_281760_, int p_283298_, int p_283429_, int p_282193_, int p_281980_) void
blit
(Function<ResourceLocation, RenderType> p_366246_, ResourceLocation p_283377_, int p_281970_, int p_282111_, float p_367108_, float p_362374_, int p_283134_, int p_282778_, int p_281478_, int p_281821_, int p_361382_, int p_365327_) void
blit
(Function<ResourceLocation, RenderType> p_363581_, ResourceLocation p_283573_, int p_283574_, int p_283670_, float p_283029_, float p_283061_, int p_283545_, int p_282845_, int p_282558_, int p_282832_, int p_281851_, int p_366628_, int p_364363_) private void
blitNineSlicedSprite
(Function<ResourceLocation, RenderType> p_364789_, TextureAtlasSprite p_300154_, GuiSpriteScaling.NineSlice p_300599_, int p_297486_, int p_298301_, int p_299602_, int p_299587_, int p_299827_) private void
blitNineSliceInnerSegment
(Function<ResourceLocation, RenderType> p_362420_, GuiSpriteScaling.NineSlice p_361460_, TextureAtlasSprite p_364978_, int p_364957_, int p_367994_, int p_362572_, int p_366826_, int p_365488_, int p_366188_, int p_369698_, int p_362666_, int p_367341_, int p_362743_, int p_364128_) void
blitSprite
(Function<ResourceLocation, RenderType> p_369326_, TextureAtlasSprite p_369444_, int p_297264_, int p_301178_, int p_297744_, int p_299331_) void
blitSprite
(Function<ResourceLocation, RenderType> p_364852_, TextureAtlasSprite p_363987_, int p_301241_, int p_298760_, int p_299400_, int p_299966_, int p_298806_) private void
blitSprite
(Function<ResourceLocation, RenderType> p_365820_, TextureAtlasSprite p_299484_, int p_297573_, int p_300435_, int p_299725_, int p_300673_, int p_301130_, int p_362878_, int p_362501_, int p_362210_, int p_363944_) void
blitSprite
(Function<ResourceLocation, RenderType> p_365180_, ResourceLocation p_298820_, int p_300417_, int p_298256_, int p_299965_, int p_300008_) void
blitSprite
(Function<ResourceLocation, RenderType> p_367608_, ResourceLocation p_300860_, int p_298718_, int p_298541_, int p_300996_, int p_298426_, int p_364958_) void
blitSprite
(Function<ResourceLocation, RenderType> p_364730_, ResourceLocation p_364214_, int p_300402_, int p_300310_, int p_300994_, int p_297577_, int p_299466_, int p_301260_, int p_298369_, int p_300819_) private void
blitTiledSprite
(Function<ResourceLocation, RenderType> p_364593_, TextureAtlasSprite p_298835_, int p_297456_, int p_300732_, int p_297241_, int p_300646_, int p_299561_, int p_298797_, int p_299557_, int p_297684_, int p_299756_, int p_297303_, int p_299619_) boolean
containsPointInScissor
(int p_334767_, int p_334338_) 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
drawSpecial
(Consumer<MultiBufferSource> p_367429_) int
drawString
(Font p_283343_, String p_281896_, float p_283569_, float p_283418_, int p_281560_, boolean p_282130_) int
drawString
(Font p_282003_, String p_281403_, int p_282714_, int p_282041_, int p_281908_) int
drawString
(Font p_283343_, 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_) int
drawStringWithBackdrop
(Font p_344926_, Component p_342324_, int p_342814_, int p_345075_, int p_343565_, int p_342787_) void
drawWordWrap
(Font p_281494_, FormattedText p_283463_, int p_282183_, int p_283250_, int p_282564_, int p_282629_) void
drawWordWrap
(Font p_378519_, FormattedText p_378432_, int p_377858_, int p_376136_, int p_378596_, int p_378166_, boolean p_376508_) 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
fillRenderType
(RenderType p_327925_, int p_328209_, int p_335424_, int p_329528_, int p_336385_, int p_332231_) void
flush()
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_) private void
innerBlit
(Function<ResourceLocation, RenderType> p_368273_, ResourceLocation p_283254_, int p_283092_, int p_281930_, int p_282113_, int p_281388_, float p_281327_, float p_281676_, float p_283166_, float p_282630_, int p_283583_) pose()
void
renderComponentHoverEffect
(Font p_282584_, 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
renderComponentTooltip
(Font p_369090_, List<Component> p_365405_, int p_368143_, int p_366244_, ResourceLocation p_364763_) void
renderComponentTooltipFromElements
(Font font, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> elements, int mouseX, int mouseY, ItemStack stack) void
renderFakeItem
(ItemStack p_281946_, int p_283299_, int p_283674_) void
renderFakeItem
(ItemStack p_309605_, int p_310104_, int p_309448_, int p_310674_) void
renderItem
(LivingEntity p_282154_, ItemStack p_282777_, int p_282110_, int p_281371_, int p_283572_) private void
renderItem
(LivingEntity p_283524_, Level p_282461_, ItemStack p_283653_, int p_283141_, int p_282560_, int p_282425_) private void
renderItem
(LivingEntity p_282619_, Level p_281754_, ItemStack p_281675_, int p_281271_, int p_282210_, int p_283260_, int p_281995_) 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_) private void
renderItemBar
(ItemStack p_367359_, int p_362139_, int p_368464_) private void
renderItemCooldown
(ItemStack p_365241_, int p_364235_, int p_369346_) private void
renderItemCount
(Font p_363240_, ItemStack p_367163_, int p_369299_, int p_364530_, String p_368187_) 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_, 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_368879_, List<? extends FormattedCharSequence> p_368774_, int p_369836_, int p_368099_, ResourceLocation p_362582_) void
renderTooltip
(Font p_283128_, List<Component> p_282716_, Optional<TooltipComponent> p_281682_, int p_283678_, int p_281696_) void
renderTooltip
(Font p_362491_, List<Component> p_368544_, Optional<TooltipComponent> p_362815_, int p_366300_, int p_368952_, ResourceLocation p_368469_) 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_366149_, Component p_366436_, int p_364277_, int p_361100_, ResourceLocation p_361238_) 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_, ResourceLocation p_368234_) 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_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.client.extensions.IForgeGuiGraphics
blitInscribed, blitInscribed, blitWithBorder, blitWithBorder, getColorFromFormattingCharacter
-
字段详细资料
-
MAX_GUI_Z
public static final float MAX_GUI_Z- 另请参阅:
-
MIN_GUI_Z
public static final float MIN_GUI_Z- 另请参阅:
-
EXTRA_SPACE_AFTER_FIRST_TOOLTIP_LINE
private static final int EXTRA_SPACE_AFTER_FIRST_TOOLTIP_LINE- 另请参阅:
-
minecraft
-
pose
-
bufferSource
-
scissorStack
-
sprites
-
scratchItemStackRenderState
-
tooltipStack
-
-
构造器详细资料
-
GuiGraphics
private GuiGraphics(Minecraft p_282144_, PoseStack p_281551_, MultiBufferSource.BufferSource p_281460_) -
GuiGraphics
-
-
方法详细资料
-
guiWidth
public int guiWidth() -
guiHeight
public int guiHeight() -
pose
-
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() -
containsPointInScissor
public boolean containsPointInScissor(int p_334767_, int p_334338_) -
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_) -
fillRenderType
public void fillRenderType(RenderType p_327925_, int p_328209_, int p_335424_, int p_329528_, int p_336385_, int p_332231_) -
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_) -
drawWordWrap
public void drawWordWrap(Font p_378519_, FormattedText p_378432_, int p_377858_, int p_376136_, int p_378596_, int p_378166_, boolean p_376508_) -
drawStringWithBackdrop
-
renderOutline
public void renderOutline(int p_281496_, int p_282076_, int p_281334_, int p_283576_, int p_283618_) -
blitSprite
public void blitSprite(Function<ResourceLocation, RenderType> p_365180_, ResourceLocation p_298820_, int p_300417_, int p_298256_, int p_299965_, int p_300008_) -
blitSprite
public void blitSprite(Function<ResourceLocation, RenderType> p_367608_, ResourceLocation p_300860_, int p_298718_, int p_298541_, int p_300996_, int p_298426_, int p_364958_) -
blitSprite
public void blitSprite(Function<ResourceLocation, RenderType> p_364730_, ResourceLocation p_364214_, int p_300402_, int p_300310_, int p_300994_, int p_297577_, int p_299466_, int p_301260_, int p_298369_, int p_300819_) -
blitSprite
public void blitSprite(Function<ResourceLocation, RenderType> p_369326_, TextureAtlasSprite p_369444_, int p_297264_, int p_301178_, int p_297744_, int p_299331_) -
blitSprite
public void blitSprite(Function<ResourceLocation, RenderType> p_364852_, TextureAtlasSprite p_363987_, int p_301241_, int p_298760_, int p_299400_, int p_299966_, int p_298806_) -
blitSprite
private void blitSprite(Function<ResourceLocation, RenderType> p_365820_, TextureAtlasSprite p_299484_, int p_297573_, int p_300435_, int p_299725_, int p_300673_, int p_301130_, int p_362878_, int p_362501_, int p_362210_, int p_363944_) -
blitNineSlicedSprite
private void blitNineSlicedSprite(Function<ResourceLocation, RenderType> p_364789_, TextureAtlasSprite p_300154_, GuiSpriteScaling.NineSlice p_300599_, int p_297486_, int p_298301_, int p_299602_, int p_299587_, int p_299827_) -
blitNineSliceInnerSegment
private void blitNineSliceInnerSegment(Function<ResourceLocation, RenderType> p_362420_, GuiSpriteScaling.NineSlice p_361460_, TextureAtlasSprite p_364978_, int p_364957_, int p_367994_, int p_362572_, int p_366826_, int p_365488_, int p_366188_, int p_369698_, int p_362666_, int p_367341_, int p_362743_, int p_364128_) -
blitTiledSprite
private void blitTiledSprite(Function<ResourceLocation, RenderType> p_364593_, TextureAtlasSprite p_298835_, int p_297456_, int p_300732_, int p_297241_, int p_300646_, int p_299561_, int p_298797_, int p_299557_, int p_297684_, int p_299756_, int p_297303_, int p_299619_) -
blit
public void blit(Function<ResourceLocation, RenderType> p_367278_, ResourceLocation p_282639_, int p_282732_, int p_283541_, float p_282660_, float p_281522_, int p_281760_, int p_283298_, int p_283429_, int p_282193_, int p_281980_) -
blit
public void blit(Function<ResourceLocation, RenderType> p_365997_, ResourceLocation p_361724_, int p_282225_, int p_281487_, float p_365061_, float p_368643_, int p_281985_, int p_281329_, int p_283035_, int p_366975_) -
blit
public void blit(Function<ResourceLocation, RenderType> p_366246_, ResourceLocation p_283377_, int p_281970_, int p_282111_, float p_367108_, float p_362374_, int p_283134_, int p_282778_, int p_281478_, int p_281821_, int p_361382_, int p_365327_) -
blit
public void blit(Function<ResourceLocation, RenderType> p_363581_, ResourceLocation p_283573_, int p_283574_, int p_283670_, float p_283029_, float p_283061_, int p_283545_, int p_282845_, int p_282558_, int p_282832_, int p_281851_, int p_366628_, int p_364363_) -
innerBlit
private void innerBlit(Function<ResourceLocation, RenderType> p_368273_, ResourceLocation p_283254_, int p_283092_, int p_281930_, int p_282113_, int p_281388_, float p_281327_, float p_281676_, float p_283166_, float p_282630_, int p_283583_) -
renderItem
-
renderItem
-
renderItem
public void renderItem(ItemStack p_282786_, int p_282502_, int p_282976_, int p_281592_, int p_282314_) -
renderFakeItem
-
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 LivingEntity p_283524_, @Nullable Level p_282461_, ItemStack p_283653_, int p_283141_, int p_282560_, int p_282425_) -
renderItem
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_) -
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
public void renderTooltip(Font p_362491_, List<Component> p_368544_, Optional<TooltipComponent> p_362815_, int p_366300_, int p_368952_, @Nullable ResourceLocation p_368469_) -
renderTooltip
-
renderTooltip
public void renderTooltip(Font p_366149_, Component p_366436_, int p_364277_, int p_361100_, @Nullable ResourceLocation p_361238_) -
renderComponentTooltip
-
renderComponentTooltip
public void renderComponentTooltip(Font font, List<? extends FormattedText> tooltips, int mouseX, int mouseY, ItemStack stack) -
renderComponentTooltipFromElements
public void renderComponentTooltipFromElements(Font font, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> elements, int mouseX, int mouseY, ItemStack stack) -
renderComponentTooltip
public void renderComponentTooltip(Font p_369090_, List<Component> p_365405_, int p_368143_, int p_366244_, @Nullable ResourceLocation p_364763_) -
renderTooltip
public void renderTooltip(Font p_282192_, List<? extends FormattedCharSequence> p_282297_, int p_281680_, int p_283325_) -
renderTooltip
public void renderTooltip(Font p_368879_, List<? extends FormattedCharSequence> p_368774_, int p_369836_, int p_368099_, @Nullable ResourceLocation p_362582_) -
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_, @Nullable ResourceLocation p_368234_) -
renderItemBar
-
renderItemCount
-
renderItemCooldown
-
renderComponentHoverEffect
-
getBufferSource
-
drawSpecial
-