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 ClassesNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionPlayerSkinWidget
(int pWidth, int pHeight, EntityModelSet pModel, Supplier<PlayerSkin> pSkin) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isActive()
nextFocusPath
(FocusNavigationEvent pEvent) Retrieves the next focus path based on the given focus navigation event.protected void
onDrag
(double pMouseX, double pMouseY, double pDragX, double pDragY) void
playDownSound
(SoundManager pHandler) protected void
renderWidget
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) protected void
updateWidgetNarration
(NarrationElementOutput pNarrationElementOutput) 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
-
-
Method Details
-
renderWidget
- Specified by:
renderWidget
in classAbstractWidget
-
onDrag
protected void onDrag(double pMouseX, double pMouseY, double pDragX, double pDragY) - 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
-