Class SkinChangeScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
org.samo_lego.fabrictailor.client.screen.SkinChangeScreen
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.Renderable
,net.minecraft.client.gui.components.TabOrderedElement
@Environment(CLIENT)
public class SkinChangeScreen
extends net.minecraft.client.gui.screens.Screen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
protected SkinTabType
protected net.minecraft.client.gui.components.Checkbox
Fields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
init()
Initializes skin changing screen.boolean
mouseClicked
(double mouseX, double mouseY, int button) Checks if one of the tabs was clicked and selects it accordingly.void
onFilesDrop
(List<Path> paths) Used for skin drag and drop.void
render
(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float delta) Renders the skin changing screen.void
renderEntityInInventoryFollowsMouseBackwards
(net.minecraft.client.gui.GuiGraphics guiGraphics, int i, int j, int k, int l, int m, float f, float g, float h, net.minecraft.world.entity.LivingEntity livingEntity) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
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.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
BUTTON_HEIGHT
public static final int BUTTON_HEIGHT- See Also:
-
BUTTON_WIDTH
public static final int BUTTON_WIDTH- See Also:
-
selectedTab
-
skinModelCheckbox
protected net.minecraft.client.gui.components.Checkbox skinModelCheckbox
-
-
Constructor Details
-
SkinChangeScreen
public SkinChangeScreen()
-
-
Method Details
-
init
protected void init()Initializes skin changing screen.- Overrides:
init
in classnet.minecraft.client.gui.screens.Screen
-
render
public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float delta) Renders the skin changing screen.- Specified by:
render
in interfacenet.minecraft.client.gui.components.Renderable
- Overrides:
render
in classnet.minecraft.client.gui.screens.Screen
-
renderEntityInInventoryFollowsMouseBackwards
public void renderEntityInInventoryFollowsMouseBackwards(net.minecraft.client.gui.GuiGraphics guiGraphics, int i, int j, int k, int l, int m, float f, float g, float h, net.minecraft.world.entity.LivingEntity livingEntity) -
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) Checks if one of the tabs was clicked and selects it accordingly.- Parameters:
mouseX
- mouse xmouseY
- mouse ybutton
- button that was clicke- Returns:
- super.mouseClicked()
-
onFilesDrop
Used for skin drag and drop.- Overrides:
onFilesDrop
in classnet.minecraft.client.gui.screens.Screen
- Parameters:
paths
- paths of the files; only first is used
-