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
,IAbstractWidgetExtension
-
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_300014_, int p_299867_, EntityModelSet p_299948_, Supplier<PlayerSkin> p_299853_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isActive()
nextFocusPath
(FocusNavigationEvent p_299934_) protected void
onDrag
(double p_299829_, double p_299876_, double p_300028_, double p_299872_) void
playDownSound
(SoundManager p_299880_) protected void
renderWidget
(GuiGraphics p_299897_, int p_299826_, int p_300009_, float p_299921_) protected void
updateWidgetNarration
(NarrationElementOutput p_299955_) 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.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClick
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_300014_, int p_299867_, EntityModelSet p_299948_, Supplier<PlayerSkin> p_299853_)
-
-
Method Details
-
renderWidget
- Specified by:
renderWidget
in classAbstractWidget
-
onDrag
protected void onDrag(double p_299829_, double p_299876_, double p_300028_, double p_299872_) - 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
-