Class JigsawBlockScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.JigsawBlockScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class JigsawBlockScreen extends Screen
- Mappings:
Namespace Name official dwy
intermediary net/minecraft/class_3742
named net/minecraft/client/gui/screen/ingame/JigsawBlockScreen
-
Field Summary
Fields Modifier and Type Field Description private ButtonWidget
doneButton
private static Text
FINAL_STATE_TEXT
private TextFieldWidget
finalStateField
private int
generationDepth
private JigsawBlockEntity
jigsaw
private JigsawBlockEntity.Joint
joint
private static Text
JOINT_LABEL_TEXT
private CyclingButtonWidget<JigsawBlockEntity.Joint>
jointRotationButton
private boolean
keepJigsaws
private static Text
NAME_TEXT
private TextFieldWidget
nameField
private static Text
POOL_TEXT
private TextFieldWidget
poolField
private static Text
TARGET_TEXT
private TextFieldWidget
targetField
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description JigsawBlockScreen(JigsawBlockEntity jigsaw)
-
Method Summary
Modifier and Type Method Description private void
generate()
protected void
init()
Called when a screen should be initialized.boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.private void
onCancel()
void
onClose()
private void
onDone()
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
resize(MinecraftClient client, int width, int height)
void
tick()
private void
updateDoneButtonState()
private void
updateServer()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
JOINT_LABEL_TEXT
- Mappings:
Namespace Name Mixin selector official a
Ldwy;a:Loi;
intermediary field_26564
Lnet/minecraft/class_3742;field_26564:Lnet/minecraft/class_2561;
named JOINT_LABEL_TEXT
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;JOINT_LABEL_TEXT:Lnet/minecraft/text/Text;
-
POOL_TEXT
- Mappings:
Namespace Name Mixin selector official b
Ldwy;b:Loi;
intermediary field_26565
Lnet/minecraft/class_3742;field_26565:Lnet/minecraft/class_2561;
named POOL_TEXT
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;POOL_TEXT:Lnet/minecraft/text/Text;
-
NAME_TEXT
- Mappings:
Namespace Name Mixin selector official c
Ldwy;c:Loi;
intermediary field_26566
Lnet/minecraft/class_3742;field_26566:Lnet/minecraft/class_2561;
named NAME_TEXT
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;NAME_TEXT:Lnet/minecraft/text/Text;
-
TARGET_TEXT
- Mappings:
Namespace Name Mixin selector official p
Ldwy;p:Loi;
intermediary field_26567
Lnet/minecraft/class_3742;field_26567:Lnet/minecraft/class_2561;
named TARGET_TEXT
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;TARGET_TEXT:Lnet/minecraft/text/Text;
-
FINAL_STATE_TEXT
- Mappings:
Namespace Name Mixin selector official q
Ldwy;q:Loi;
intermediary field_26568
Lnet/minecraft/class_3742;field_26568:Lnet/minecraft/class_2561;
named FINAL_STATE_TEXT
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;FINAL_STATE_TEXT:Lnet/minecraft/text/Text;
-
jigsaw
- Mappings:
Namespace Name Mixin selector official r
Ldwy;r:Lcgk;
intermediary field_16522
Lnet/minecraft/class_3742;field_16522:Lnet/minecraft/class_3751;
named jigsaw
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;jigsaw:Lnet/minecraft/block/entity/JigsawBlockEntity;
-
nameField
- Mappings:
Namespace Name Mixin selector official s
Ldwy;s:Ldsc;
intermediary field_23348
Lnet/minecraft/class_3742;field_23348:Lnet/minecraft/class_342;
named nameField
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;nameField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
targetField
- Mappings:
Namespace Name Mixin selector official t
Ldwy;t:Ldsc;
intermediary field_23349
Lnet/minecraft/class_3742;field_23349:Lnet/minecraft/class_342;
named targetField
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;targetField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
poolField
- Mappings:
Namespace Name Mixin selector official u
Ldwy;u:Ldsc;
intermediary field_23350
Lnet/minecraft/class_3742;field_23350:Lnet/minecraft/class_342;
named poolField
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;poolField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
finalStateField
- Mappings:
Namespace Name Mixin selector official v
Ldwy;v:Ldsc;
intermediary field_16519
Lnet/minecraft/class_3742;field_16519:Lnet/minecraft/class_342;
named finalStateField
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;finalStateField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
generationDepth
private int generationDepth- Mappings:
Namespace Name Mixin selector official w
Ldwy;w:I
intermediary field_24052
Lnet/minecraft/class_3742;field_24052:I
named generationDepth
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;generationDepth:I
-
keepJigsaws
private boolean keepJigsaws- Mappings:
Namespace Name Mixin selector official x
Ldwy;x:Z
intermediary field_25271
Lnet/minecraft/class_3742;field_25271:Z
named keepJigsaws
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;keepJigsaws:Z
-
jointRotationButton
- Mappings:
Namespace Name Mixin selector official y
Ldwy;y:Ldsa;
intermediary field_23351
Lnet/minecraft/class_3742;field_23351:Lnet/minecraft/class_5676;
named jointRotationButton
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;jointRotationButton:Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
-
doneButton
- Mappings:
Namespace Name Mixin selector official z
Ldwy;z:Ldru;
intermediary field_19103
Lnet/minecraft/class_3742;field_19103:Lnet/minecraft/class_4185;
named doneButton
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
joint
- Mappings:
Namespace Name Mixin selector official A
Ldwy;A:Lcgk$a;
intermediary field_23352
Lnet/minecraft/class_3742;field_23352:Lnet/minecraft/class_3751$class_4991;
named joint
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;joint:Lnet/minecraft/block/entity/JigsawBlockEntity$Joint;
-
-
Constructor Details
-
JigsawBlockScreen
- Mappings:
Namespace Name Mixin selector official <init>
Ldwy;<init>(Lcgk;)V
intermediary <init>
Lnet/minecraft/class_3742;<init>(Lnet/minecraft/class_3751;)V
named <init>
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;<init>(Lnet/minecraft/block/entity/JigsawBlockEntity;)V
-
-
Method Details
-
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classScreen
- Mappings:
Namespace Name Mixin selector official d
Ldsn;d()V
intermediary method_25393
Lnet/minecraft/class_4893;method_25393()V
named tick
Lnet/minecraft/client/gui/screen/TickableElement;tick()V
-
onDone
private void onDone()- Mappings:
Namespace Name Mixin selector official h
Ldwy;h()V
intermediary method_16346
Lnet/minecraft/class_3742;method_16346()V
named onDone
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;onDone()V
-
onCancel
private void onCancel()- Mappings:
Namespace Name Mixin selector official i
Ldwy;i()V
intermediary method_16349
Lnet/minecraft/class_3742;method_16349()V
named onCancel
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;onCancel()V
-
updateServer
private void updateServer()- Mappings:
Namespace Name Mixin selector official k
Ldwy;k()V
intermediary method_16348
Lnet/minecraft/class_3742;method_16348()V
named updateServer
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;updateServer()V
-
generate
private void generate()- Mappings:
Namespace Name Mixin selector official l
Ldwy;l()V
intermediary method_27272
Lnet/minecraft/class_3742;method_27272()V
named generate
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;generate()V
-
onClose
public void onClose() -
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
updateDoneButtonState
private void updateDoneButtonState()- Mappings:
Namespace Name Mixin selector official m
Ldwy;m()V
intermediary method_20118
Lnet/minecraft/class_3742;method_20118()V
named updateDoneButtonState
Lnet/minecraft/client/gui/screen/ingame/JigsawBlockScreen;updateDoneButtonState()V
-
resize
-
removed
public void removed() -
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured. The key code is identified by the constants inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Keyboard.onKey(long, int, int, int, int)
,GLFW.GLFW_KEY_Q
,GLFWKeyCallbackI.invoke(long, int, int, int, int)
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldsq;a(Ldlr;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-