Class PlayerSkinWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.PlayerSkinWidget
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
private static final float
private final PlayerSkinWidget.Model
private static final float
private static final float
private static final float
private static final float
private float
private float
private final Supplier<PlayerSkin>
private static final float
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionPlayerSkinWidget
(int p_299990_, int p_297411_, EntityModelSet p_298438_, Supplier<PlayerSkin> p_299497_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isActive()
nextFocusPath
(FocusNavigationEvent p_300388_) protected void
onDrag
(double p_301243_, double p_297441_, double p_301242_, double p_297777_) void
playDownSound
(SoundManager p_299795_) protected void
renderWidget
(GuiGraphics p_298610_, int p_299860_, int p_299420_, float p_300463_) protected void
updateWidgetNarration
(NarrationElementOutput p_298811_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onClick, onRelease, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
MODEL_OFFSET
private static final float MODEL_OFFSET- See Also:
-
MODEL_HEIGHT
private static final float MODEL_HEIGHT- See Also:
-
Z_OFFSET
private static final float Z_OFFSET- See Also:
-
ROTATION_SENSITIVITY
private static final float ROTATION_SENSITIVITY- See Also:
-
DEFAULT_ROTATION_X
private static final float DEFAULT_ROTATION_X- See Also:
-
DEFAULT_ROTATION_Y
private static final float DEFAULT_ROTATION_Y- See Also:
-
ROTATION_X_LIMIT
private static final float ROTATION_X_LIMIT- See Also:
-
model
-
skin
-
rotationX
private float rotationX -
rotationY
private float rotationY
-
-
Constructor Details
-
PlayerSkinWidget
public PlayerSkinWidget(int p_299990_, int p_297411_, EntityModelSet p_298438_, Supplier<PlayerSkin> p_299497_)
-
-
Method Details
-
renderWidget
- Specified by:
renderWidget
in classAbstractWidget
-
onDrag
protected void onDrag(double p_301243_, double p_297441_, double p_301242_, double p_297777_) - Overrides:
onDrag
in classAbstractWidget
-
playDownSound
- Overrides:
playDownSound
in classAbstractWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceNarratableEntry
- Overrides:
isActive
in classAbstractWidget
-