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 class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface 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 AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionPlayerSkinWidget(int width, int height, EntityModelSet models, Supplier<PlayerSkin> skin) -
Method Summary
Modifier and TypeMethodDescription@Nullable ComponentPathnextFocusPath(FocusNavigationEvent navigationEvent) Retrieves the next focus path based on the given focus navigation event.protected voidonDrag(MouseButtonEvent event, double dx, double dy) voidplayDownSound(SoundManager soundManager) protected voidrenderWidget(GuiGraphics graphics, int mouseX, int mouseY, float a) protected voidMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onClick, onRelease, playButtonClickSound, render, renderScrollingStringOverContents, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface 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
-