Class AdvancementEntryGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.advancements.AdvancementEntryGui
-
public class AdvancementEntryGui extends AbstractGui
-
-
Field Summary
Fields Modifier and Type Field Description private Advancement
advancement
private java.util.List<AdvancementEntryGui>
children
private java.util.List<IReorderingProcessor>
description
private DisplayInfo
display
private Minecraft
minecraft
private AdvancementEntryGui
parent
private AdvancementProgress
progress
private AdvancementTabGui
tab
private static int[]
TEST_SPLIT_OFFSETS
private IReorderingProcessor
title
private static ResourceLocation
WIDGETS_LOCATION
private int
width
private int
x
private int
y
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description AdvancementEntryGui(AdvancementTabGui p_i47385_1_, Minecraft p_i47385_2_, Advancement p_i47385_3_, DisplayInfo p_i47385_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(AdvancementEntryGui p_191822_1_)
void
attachToParent()
void
draw(MatrixStack p_238688_1_, int p_238688_2_, int p_238688_3_)
void
drawConnectivity(MatrixStack p_238692_1_, int p_238692_2_, int p_238692_3_, boolean p_238692_4_)
void
drawHover(MatrixStack p_238689_1_, int p_238689_2_, int p_238689_3_, float p_238689_4_, int p_238689_5_, int p_238689_6_)
private java.util.List<ITextProperties>
findOptimalLines(ITextComponent p_238694_1_, int p_238694_2_)
private AdvancementEntryGui
getFirstVisibleParent(Advancement p_191818_1_)
private static float
getMaxWidth(CharacterManager p_238693_0_, java.util.List<ITextProperties> p_238693_1_)
int
getX()
int
getY()
boolean
isMouseOver(int p_191816_1_, int p_191816_2_, int p_191816_3_, int p_191816_4_)
protected void
render9Sprite(MatrixStack p_238691_1_, int p_238691_2_, int p_238691_3_, int p_238691_4_, int p_238691_5_, int p_238691_6_, int p_238691_7_, int p_238691_8_, int p_238691_9_, int p_238691_10_)
protected void
renderRepeating(MatrixStack p_238690_1_, int p_238690_2_, int p_238690_3_, int p_238690_4_, int p_238690_5_, int p_238690_6_, int p_238690_7_, int p_238690_8_, int p_238690_9_)
void
setProgress(AdvancementProgress p_191824_1_)
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
-
-
-
Field Detail
-
WIDGETS_LOCATION
private static final ResourceLocation WIDGETS_LOCATION
-
TEST_SPLIT_OFFSETS
private static final int[] TEST_SPLIT_OFFSETS
-
tab
private final AdvancementTabGui tab
-
advancement
private final Advancement advancement
-
display
private final DisplayInfo display
-
title
private final IReorderingProcessor title
-
width
private final int width
-
description
private final java.util.List<IReorderingProcessor> description
-
minecraft
private final Minecraft minecraft
-
parent
private AdvancementEntryGui parent
-
children
private final java.util.List<AdvancementEntryGui> children
-
progress
private AdvancementProgress progress
-
x
private final int x
-
y
private final int y
-
-
Constructor Detail
-
AdvancementEntryGui
public AdvancementEntryGui(AdvancementTabGui p_i47385_1_, Minecraft p_i47385_2_, Advancement p_i47385_3_, DisplayInfo p_i47385_4_)
-
-
Method Detail
-
getMaxWidth
private static float getMaxWidth(CharacterManager p_238693_0_, java.util.List<ITextProperties> p_238693_1_)
-
findOptimalLines
private java.util.List<ITextProperties> findOptimalLines(ITextComponent p_238694_1_, int p_238694_2_)
-
getFirstVisibleParent
@Nullable private AdvancementEntryGui getFirstVisibleParent(Advancement p_191818_1_)
-
drawConnectivity
public void drawConnectivity(MatrixStack p_238692_1_, int p_238692_2_, int p_238692_3_, boolean p_238692_4_)
-
draw
public void draw(MatrixStack p_238688_1_, int p_238688_2_, int p_238688_3_)
-
setProgress
public void setProgress(AdvancementProgress p_191824_1_)
-
addChild
public void addChild(AdvancementEntryGui p_191822_1_)
-
drawHover
public void drawHover(MatrixStack p_238689_1_, int p_238689_2_, int p_238689_3_, float p_238689_4_, int p_238689_5_, int p_238689_6_)
-
render9Sprite
protected void render9Sprite(MatrixStack p_238691_1_, int p_238691_2_, int p_238691_3_, int p_238691_4_, int p_238691_5_, int p_238691_6_, int p_238691_7_, int p_238691_8_, int p_238691_9_, int p_238691_10_)
-
renderRepeating
protected void renderRepeating(MatrixStack p_238690_1_, int p_238690_2_, int p_238690_3_, int p_238690_4_, int p_238690_5_, int p_238690_6_, int p_238690_7_, int p_238690_8_, int p_238690_9_)
-
isMouseOver
public boolean isMouseOver(int p_191816_1_, int p_191816_2_, int p_191816_3_, int p_191816_4_)
-
attachToParent
public void attachToParent()
-
getY
public int getY()
-
getX
public int getX()
-
-