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
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate static final floatprivate static final floatprivate static final floatprivate static final floatprivate static final floatprivate floatprivate floatprivate final Supplier<PlayerSkin> private final PlayerModelprivate final PlayerModelFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionPlayerSkinWidget(int pWidth, int pHeight, EntityModelSet pModel, Supplier<PlayerSkin> pSkin) -
Method Summary
Modifier and TypeMethodDescriptionnextFocusPath(FocusNavigationEvent p_299934_) Retrieves the next focus path based on the given focus navigation event.protected voidonDrag(MouseButtonEvent p_447054_, double p_299829_, double p_299876_) voidplayDownSound(SoundManager p_299880_) protected voidrenderWidget(GuiGraphics p_299897_, int p_299826_, int p_300009_, float p_299921_) protected voidupdateWidgetNarration(NarrationElementOutput p_299955_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onClick, onRelease, playButtonClickSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
getNarratables
-
Field Details
-
MODEL_HEIGHT
private static final float MODEL_HEIGHT- See Also:
-
FIT_SCALE
private static final float FIT_SCALE- 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:
-
wideModel
-
slimModel
-
skin
-
rotationX
private float rotationX -
rotationY
private float rotationY
-
-
Constructor Details
-
PlayerSkinWidget
-
-
Method Details
-
renderWidget
- Specified by:
renderWidgetin classAbstractWidget
-
onDrag
- Overrides:
onDragin classAbstractWidget
-
playDownSound
- Overrides:
playDownSoundin classAbstractWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-