类 ModMismatchDisconnectedScreen.MismatchInfoPanel
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraftforge.client.gui.widget.ScrollPanel
net.minecraftforge.client.gui.ModMismatchDisconnectedScreen.MismatchInfoPanel
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,NarratableEntry
,NarrationSupplier
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明private final int
private final List
<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, FormattedCharSequence>>> private final int
private final int
private final int
private final int
从类继承的字段 net.minecraftforge.client.gui.widget.ScrollPanel
border, bottom, captureMouse, height, left, right, scrollDistance, top, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
drawPanel
(GuiGraphics guiGraphics, int entryRight, int relativeY, Tesselator tess, int mouseX, int mouseY) Draw anything special on the screen.getComponentStyleAt
(double x, double y) protected int
boolean
mouseClicked
(double mouseX, double mouseY, int button) void
render
(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) private List
<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, FormattedCharSequence>>> splitLineToWidth
(MutableComponent name, org.apache.commons.lang3.tuple.Pair<String, String> versions) Splits the raw name and version strings, making them use multiple lines if needed, to fit within the table dimensions.private MutableComponent
toModNameComponent
(ResourceLocation id, String modName, int color) Adds a style information to the given mod name string.void
从类继承的方法 net.minecraftforge.client.gui.widget.ScrollPanel
children, clickPanel, drawBackground, drawGradientRect, getScrollAmount, isMouseOver, mouseDragged, mouseReleased, mouseScrolled
从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, getRectangle, mouseMoved
从接口继承的方法 net.minecraft.client.gui.narration.NarratableEntry
getNarratables, isActive
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
lineTable
private final List<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence,org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, lineTableFormattedCharSequence>>> -
contentSize
private final int contentSize -
nameIndent
private final int nameIndent- 另请参阅:
-
tableWidth
private final int tableWidth -
nameWidth
private final int nameWidth -
versionWidth
private final int versionWidth
-
-
构造器详细资料
-
MismatchInfoPanel
-
-
方法详细资料
-
splitLineToWidth
private List<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence,org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, splitLineToWidthFormattedCharSequence>>> (MutableComponent name, org.apache.commons.lang3.tuple.Pair<String, String> versions) Splits the raw name and version strings, making them use multiple lines if needed, to fit within the table dimensions. The style assigned to the name element is then applied to the entire content row.- 参数:
name
- The first element of the content row, usually representing a table section header or the name of a mod entryversions
- The last two elements of the content row, usually representing the mod versions. If either one or both of them are not given, the first element may take up more space within the table.- 返回:
- A list of table rows consisting of 3 elements each which consist of the same content as was given by the parameters, but split up to fit within the table dimensions.
-
toModNameComponent
Adds a style information to the given mod name string. The style assigned to the returned component contains the color of the mod name, a hover event containing the given id, and an optional click event, which opens the homepage of mod, if present.- 参数:
id
- An id that gets displayed in the hover event. Depending on the origin it may only consist of a namespace (the mod id) or a namespace + path (a channel id associated with the mod).modName
- The name of the mod. It will be rendered as the main text component.color
- Defines the color of the returned style information. An odd number will result in a yellow, an even one in a gold color. This color variation makes it easier for users to distinguish different mod entries.- 返回:
- A component with the mod name as the main text component, and an assigned style which will be used for the whole content row.
-
getContentHeight
protected int getContentHeight()- 指定者:
getContentHeight
在类中ScrollPanel
-
drawPanel
protected void drawPanel(GuiGraphics guiGraphics, int entryRight, int relativeY, Tesselator tess, int mouseX, int mouseY) 从类复制的说明:ScrollPanel
Draw anything special on the screen. Scissor (RenderSystem.enableScissor) is enabled for anything that is rendered outside the view box. Do not mess with Scissor unless you support this.- 指定者:
drawPanel
在类中ScrollPanel
-
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中ScrollPanel
-
getComponentStyleAt
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - 指定者:
mouseClicked
在接口中ContainerEventHandler
- 指定者:
mouseClicked
在接口中GuiEventListener
- 覆盖:
mouseClicked
在类中ScrollPanel
-
narrationPriority
-
updateNarration
-