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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected SkinTabTypeprotected net.minecraft.client.gui.components.CheckboxFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidextractEntityInInventoryFollowsMouseBackwards(net.minecraft.client.gui.GuiGraphicsExtractor graphicsExtractor, int x0, int y0, int x1, int y1, int size, float offsetY, float mouseX, float mouseY, net.minecraft.world.entity.LivingEntity entity) voidextractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphicsExtractor, int mouseX, int mouseY, float delta) Renders the skin changing screen.protected voidinit()Initializes skin changing screen.booleanmouseClicked(net.minecraft.client.input.MouseButtonEvent mouseButtonEvent, boolean bl) Checks if one of the tabs was clicked and selects it accordingly.voidonFilesDrop(List<Path> paths) Used for skin drag and drop.Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onClose, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods 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:
initin classnet.minecraft.client.gui.screens.Screen
-
extractRenderState
public void extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphicsExtractor, int mouseX, int mouseY, float delta) Renders the skin changing screen.- Specified by:
extractRenderStatein interfacenet.minecraft.client.gui.components.Renderable- Overrides:
extractRenderStatein classnet.minecraft.client.gui.screens.Screen
-
extractEntityInInventoryFollowsMouseBackwards
public static void extractEntityInInventoryFollowsMouseBackwards(net.minecraft.client.gui.GuiGraphicsExtractor graphicsExtractor, int x0, int y0, int x1, int y1, int size, float offsetY, float mouseX, float mouseY, net.minecraft.world.entity.LivingEntity entity) -
mouseClicked
public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent mouseButtonEvent, boolean bl) Checks if one of the tabs was clicked and selects it accordingly.- Parameters:
mouseButtonEvent- The mouse event- Returns:
- super.mouseClicked()
-
onFilesDrop
-