类 CycleTextureButton<T>
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractButton
committee.nova.mods.avaritia.api.client.screen.component.CycleTextureButton<T>
- 所有已实现的接口:
net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable,net.minecraft.client.gui.components.TabOrderedElement,net.minecraft.client.gui.layouts.LayoutElement,net.minecraft.client.gui.narration.NarratableEntry,net.minecraft.client.gui.narration.NarrationSupplier
public class CycleTextureButton<T>
extends net.minecraft.client.gui.components.AbstractButton
-
嵌套类概要
嵌套类修饰符和类型类说明static classstatic interfacestatic interface从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority -
字段概要
字段修饰符和类型字段说明static final BooleanSupplierprotected final net.minecraft.resources.ResourceLocationprotected final intprotected final intprotected final intprotected final intprotected final intprotected final int从类继承的字段 net.minecraft.client.gui.components.AbstractButton
TEXT_MARGIN, TEXTURE_BORDER_X, TEXTURE_BORDER_Y, TEXTURE_HEIGHT, TEXTURE_WIDTH, TEXTURE_Y_OFFSET从类继承的字段 net.minecraft.client.gui.components.AbstractWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
方法概要
修饰符和类型方法说明static CycleTextureButton.Builder<Boolean>booleanBuilder(net.minecraft.network.chat.Component componentOn, net.minecraft.network.chat.Component componentOff) static <T> CycleTextureButton.Builder<T>net.minecraft.network.chat.MutableComponentprotected @NotNull net.minecraft.network.chat.MutableComponentgetValue()booleanmouseScrolled(double mouseX, double mouseY, double delta) static CycleTextureButton.Builder<Boolean>static CycleTextureButton.Builder<Boolean>onOffBuilder(boolean initialValue) voidonPress()protected voidrenderWidget(@NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) voidvoidupdateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput narrationElementOutput) 从类继承的方法 net.minecraft.client.gui.components.AbstractButton
keyPressed, onClick, renderString从类继承的方法 net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderTexture, setAlpha, setFGColor, setFocused, setHeight, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getCurrentFocusPath, keyReleased, mouseMoved从接口继承的方法 net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
字段详细资料
-
DEFAULT_ALT_LIST_SELECTOR
-
resourceLocation
protected final net.minecraft.resources.ResourceLocation resourceLocation -
xTexStart
protected final int xTexStart -
yTexStart
protected final int yTexStart -
xDiffTex
protected final int xDiffTex -
yDiffTex
protected final int yDiffTex -
textureWidth
protected final int textureWidth -
textureHeight
protected final int textureHeight
-
-
方法详细资料
-
onPress
public void onPress()- 指定者:
onPress在类中net.minecraft.client.gui.components.AbstractButton
-
renderWidget
protected void renderWidget(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) - 覆盖:
renderWidget在类中net.minecraft.client.gui.components.AbstractButton
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double delta) -
setValue
-
getValue
-
createNarrationMessage
@NotNull protected @NotNull net.minecraft.network.chat.MutableComponent createNarrationMessage()- 覆盖:
createNarrationMessage在类中net.minecraft.client.gui.components.AbstractWidget
-
updateWidgetNarration
public void updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput narrationElementOutput) - 指定者:
updateWidgetNarration在类中net.minecraft.client.gui.components.AbstractWidget
-
createDefaultNarrationMessage
public net.minecraft.network.chat.MutableComponent createDefaultNarrationMessage() -
builder
public static <T> CycleTextureButton.Builder<T> builder(Function<T, net.minecraft.network.chat.Component> valueStringifier) -
booleanBuilder
public static CycleTextureButton.Builder<Boolean> booleanBuilder(net.minecraft.network.chat.Component componentOn, net.minecraft.network.chat.Component componentOff) -
onOffBuilder
-
onOffBuilder
-