Class StructureBlockScreen
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.StructureBlockScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class StructureBlockScreen extends Screen
- Mappings:
Namespace Name official dxkintermediary net/minecraft/class_497named net/minecraft/client/gui/screen/ingame/StructureBlockScreen
-
Field Summary
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description StructureBlockScreen(StructureBlockBlockEntity structureBlock) -
Method Summary
Modifier and Type Method Description private voidcancel()private voiddone()protected voidinit()Called when a screen should be initialized.booleanisPauseScreen()booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.private booleanmethod_2516(StructureBlockBlockEntity.Action action)private voidmethod_32650(StructureBlockMode structureBlockMode)voidonClose()private floatparseFloat(String string)private intparseInt(String string)private longparseLong(String string)voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidresize(MinecraftClient client, int width, int height)voidtick()private voidupdateRotationButton()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, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods 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, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
STRUCTURE_NAME_TEXT
- Mappings:
Namespace Name Mixin selector official aLdxk;a:Loi;intermediary field_26572Lnet/minecraft/class_497;field_26572:Lnet/minecraft/class_2561;named STRUCTURE_NAME_TEXTLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;STRUCTURE_NAME_TEXT:Lnet/minecraft/text/Text;
-
POSITION_TEXT
- Mappings:
Namespace Name Mixin selector official bLdxk;b:Loi;intermediary field_26573Lnet/minecraft/class_497;field_26573:Lnet/minecraft/class_2561;named POSITION_TEXTLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;POSITION_TEXT:Lnet/minecraft/text/Text;
-
SIZE_TEXT
- Mappings:
Namespace Name Mixin selector official cLdxk;c:Loi;intermediary field_26574Lnet/minecraft/class_497;field_26574:Lnet/minecraft/class_2561;named SIZE_TEXTLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;SIZE_TEXT:Lnet/minecraft/text/Text;
-
INTEGRITY_TEXT
- Mappings:
Namespace Name Mixin selector official pLdxk;p:Loi;intermediary field_26575Lnet/minecraft/class_497;field_26575:Lnet/minecraft/class_2561;named INTEGRITY_TEXTLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;INTEGRITY_TEXT:Lnet/minecraft/text/Text;
-
CUSTOM_DATA_TEXT
- Mappings:
Namespace Name Mixin selector official qLdxk;q:Loi;intermediary field_26576Lnet/minecraft/class_497;field_26576:Lnet/minecraft/class_2561;named CUSTOM_DATA_TEXTLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;CUSTOM_DATA_TEXT:Lnet/minecraft/text/Text;
-
INCLUDE_ENTITIES_TEXT
- Mappings:
Namespace Name Mixin selector official rLdxk;r:Loi;intermediary field_26577Lnet/minecraft/class_497;field_26577:Lnet/minecraft/class_2561;named INCLUDE_ENTITIES_TEXTLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;INCLUDE_ENTITIES_TEXT:Lnet/minecraft/text/Text;
-
DETECT_SIZE_TEXT
- Mappings:
Namespace Name Mixin selector official sLdxk;s:Loi;intermediary field_26578Lnet/minecraft/class_497;field_26578:Lnet/minecraft/class_2561;named DETECT_SIZE_TEXTLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;DETECT_SIZE_TEXT:Lnet/minecraft/text/Text;
-
SHOW_AIR_TEXT
- Mappings:
Namespace Name Mixin selector official tLdxk;t:Loi;intermediary field_26579Lnet/minecraft/class_497;field_26579:Lnet/minecraft/class_2561;named SHOW_AIR_TEXTLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;SHOW_AIR_TEXT:Lnet/minecraft/text/Text;
-
SHOW_BOUNDING_BOX_TEXT
- Mappings:
Namespace Name Mixin selector official uLdxk;u:Loi;intermediary field_26580Lnet/minecraft/class_497;field_26580:Lnet/minecraft/class_2561;named SHOW_BOUNDING_BOX_TEXTLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;SHOW_BOUNDING_BOX_TEXT:Lnet/minecraft/text/Text;
-
MODES
- Mappings:
Namespace Name Mixin selector official vLdxk;v:Lcom/google/common/collect/ImmutableList;intermediary field_27993Lnet/minecraft/class_497;field_27993:Lcom/google/common/collect/ImmutableList;named MODESLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;MODES:Lcom/google/common/collect/ImmutableList;
-
MODES_EXCEPT_DATA
- Mappings:
Namespace Name Mixin selector official wLdxk;w:Lcom/google/common/collect/ImmutableList;intermediary field_27994Lnet/minecraft/class_497;field_27994:Lcom/google/common/collect/ImmutableList;named MODES_EXCEPT_DATALnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;MODES_EXCEPT_DATA:Lcom/google/common/collect/ImmutableList;
-
structureBlock
- Mappings:
Namespace Name Mixin selector official xLdxk;x:Lcgv;intermediary field_2980Lnet/minecraft/class_497;field_2980:Lnet/minecraft/class_2633;named structureBlockLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;structureBlock:Lnet/minecraft/block/entity/StructureBlockBlockEntity;
-
mirror
- Mappings:
Namespace Name Mixin selector official yLdxk;y:Lcbb;intermediary field_2996Lnet/minecraft/class_497;field_2996:Lnet/minecraft/class_2415;named mirrorLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;mirror:Lnet/minecraft/util/BlockMirror;
-
rotation
- Mappings:
Namespace Name Mixin selector official zLdxk;z:Lccm;intermediary field_3003Lnet/minecraft/class_497;field_3003:Lnet/minecraft/class_2470;named rotationLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;rotation:Lnet/minecraft/util/BlockRotation;
-
mode
- Mappings:
Namespace Name Mixin selector official ALdxk;A:Lcjc;intermediary field_3004Lnet/minecraft/class_497;field_3004:Lnet/minecraft/class_2776;named modeLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;mode:Lnet/minecraft/block/enums/StructureBlockMode;
-
ignoreEntities
private boolean ignoreEntities- Mappings:
Namespace Name Mixin selector official BLdxk;B:Zintermediary field_2985Lnet/minecraft/class_497;field_2985:Znamed ignoreEntitiesLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;ignoreEntities:Z
-
showAir
private boolean showAir- Mappings:
Namespace Name Mixin selector official CLdxk;C:Zintermediary field_2997Lnet/minecraft/class_497;field_2997:Znamed showAirLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;showAir:Z
-
showBoundingBox
private boolean showBoundingBox- Mappings:
Namespace Name Mixin selector official DLdxk;D:Zintermediary field_2983Lnet/minecraft/class_497;field_2983:Znamed showBoundingBoxLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;showBoundingBox:Z
-
inputName
- Mappings:
Namespace Name Mixin selector official ELdxk;E:Ldsc;intermediary field_3005Lnet/minecraft/class_497;field_3005:Lnet/minecraft/class_342;named inputNameLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputName:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
inputPosX
- Mappings:
Namespace Name Mixin selector official FLdxk;F:Ldsc;intermediary field_2982Lnet/minecraft/class_497;field_2982:Lnet/minecraft/class_342;named inputPosXLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputPosX:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
inputPosY
- Mappings:
Namespace Name Mixin selector official GLdxk;G:Ldsc;intermediary field_2999Lnet/minecraft/class_497;field_2999:Lnet/minecraft/class_342;named inputPosYLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputPosY:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
inputPosZ
- Mappings:
Namespace Name Mixin selector official HLdxk;H:Ldsc;intermediary field_3010Lnet/minecraft/class_497;field_3010:Lnet/minecraft/class_342;named inputPosZLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputPosZ:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
inputSizeX
- Mappings:
Namespace Name Mixin selector official ILdxk;I:Ldsc;intermediary field_2988Lnet/minecraft/class_497;field_2988:Lnet/minecraft/class_342;named inputSizeXLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputSizeX:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
inputSizeY
- Mappings:
Namespace Name Mixin selector official JLdxk;J:Ldsc;intermediary field_2998Lnet/minecraft/class_497;field_2998:Lnet/minecraft/class_342;named inputSizeYLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputSizeY:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
inputSizeZ
- Mappings:
Namespace Name Mixin selector official KLdxk;K:Ldsc;intermediary field_2978Lnet/minecraft/class_497;field_2978:Lnet/minecraft/class_342;named inputSizeZLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputSizeZ:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
inputIntegrity
- Mappings:
Namespace Name Mixin selector official LLdxk;L:Ldsc;intermediary field_3000Lnet/minecraft/class_497;field_3000:Lnet/minecraft/class_342;named inputIntegrityLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputIntegrity:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
inputSeed
- Mappings:
Namespace Name Mixin selector official MLdxk;M:Ldsc;intermediary field_2992Lnet/minecraft/class_497;field_2992:Lnet/minecraft/class_342;named inputSeedLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputSeed:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
inputMetadata
- Mappings:
Namespace Name Mixin selector official NLdxk;N:Ldsc;intermediary field_2986Lnet/minecraft/class_497;field_2986:Lnet/minecraft/class_342;named inputMetadataLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;inputMetadata:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
buttonSave
- Mappings:
Namespace Name Mixin selector official OLdxk;O:Ldru;intermediary field_2987Lnet/minecraft/class_497;field_2987:Lnet/minecraft/class_4185;named buttonSaveLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonSave:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
buttonLoad
- Mappings:
Namespace Name Mixin selector official PLdxk;P:Ldru;intermediary field_3006Lnet/minecraft/class_497;field_3006:Lnet/minecraft/class_4185;named buttonLoadLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonLoad:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
buttonRotate0
- Mappings:
Namespace Name Mixin selector official QLdxk;Q:Ldru;intermediary field_2995Lnet/minecraft/class_497;field_2995:Lnet/minecraft/class_4185;named buttonRotate0Lnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonRotate0:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
buttonRotate90
- Mappings:
Namespace Name Mixin selector official RLdxk;R:Ldru;intermediary field_2981Lnet/minecraft/class_497;field_2981:Lnet/minecraft/class_4185;named buttonRotate90Lnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonRotate90:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
buttonRotate180
- Mappings:
Namespace Name Mixin selector official SLdxk;S:Ldru;intermediary field_3007Lnet/minecraft/class_497;field_3007:Lnet/minecraft/class_4185;named buttonRotate180Lnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonRotate180:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
buttonRotate270
- Mappings:
Namespace Name Mixin selector official TLdxk;T:Ldru;intermediary field_2993Lnet/minecraft/class_497;field_2993:Lnet/minecraft/class_4185;named buttonRotate270Lnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonRotate270:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
buttonDetect
- Mappings:
Namespace Name Mixin selector official ULdxk;U:Ldru;intermediary field_3009Lnet/minecraft/class_497;field_3009:Lnet/minecraft/class_4185;named buttonDetectLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonDetect:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
buttonEntities
- Mappings:
Namespace Name Mixin selector official VLdxk;V:Ldsa;intermediary field_2990Lnet/minecraft/class_497;field_2990:Lnet/minecraft/class_5676;named buttonEntitiesLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonEntities:Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
-
buttonMirror
- Mappings:
Namespace Name Mixin selector official WLdxk;W:Ldsa;intermediary field_2979Lnet/minecraft/class_497;field_2979:Lnet/minecraft/class_5676;named buttonMirrorLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonMirror:Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
-
buttonShowAir
- Mappings:
Namespace Name Mixin selector official XLdxk;X:Ldsa;intermediary field_3008Lnet/minecraft/class_497;field_3008:Lnet/minecraft/class_5676;named buttonShowAirLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonShowAir:Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
-
buttonShowBoundingBox
- Mappings:
Namespace Name Mixin selector official YLdxk;Y:Ldsa;intermediary field_3001Lnet/minecraft/class_497;field_3001:Lnet/minecraft/class_5676;named buttonShowBoundingBoxLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;buttonShowBoundingBox:Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
-
decimalFormat
- Mappings:
Namespace Name Mixin selector official ZLdxk;Z:Ljava/text/DecimalFormat;intermediary field_2991Lnet/minecraft/class_497;field_2991:Ljava/text/DecimalFormat;named decimalFormatLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;decimalFormat:Ljava/text/DecimalFormat;
-
-
Constructor Details
-
StructureBlockScreen
- Mappings:
Namespace Name Mixin selector official <init>Ldxk;<init>(Lcgv;)Vintermediary <init>Lnet/minecraft/class_497;<init>(Lnet/minecraft/class_2633;)Vnamed <init>Lnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;<init>(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)V
-
-
Method Details
-
tick
public void tick()- Specified by:
tickin interfaceTickableElement- Overrides:
tickin classScreen- Mappings:
Namespace Name Mixin selector official dLdsn;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
done
private void done()- Mappings:
Namespace Name Mixin selector official hLdxk;h()Vintermediary method_2515Lnet/minecraft/class_497;method_2515()Vnamed doneLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;done()V
-
cancel
private void cancel()- Mappings:
Namespace Name Mixin selector official iLdxk;i()Vintermediary method_2514Lnet/minecraft/class_497;method_2514()Vnamed cancelLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;cancel()V
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
resize
-
removed
public void removed() -
updateRotationButton
private void updateRotationButton()- Mappings:
Namespace Name Mixin selector official kLdxk;k()Vintermediary method_2510Lnet/minecraft/class_497;method_2510()Vnamed updateRotationButtonLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;updateRotationButton()V
-
method_32650
- Mappings:
Namespace Name Mixin selector official aLdxk;a(Lcjc;)Vintermediary method_32650Lnet/minecraft/class_497;method_32650(Lnet/minecraft/class_2776;)Vnamed method_32650Lnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;method_32650(Lnet/minecraft/block/enums/StructureBlockMode;)V
-
method_2516
- Mappings:
Namespace Name Mixin selector official aLdxk;a(Lcgv$a;)Zintermediary method_2516Lnet/minecraft/class_497;method_2516(Lnet/minecraft/class_2633$class_2634;)Znamed method_2516Lnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;method_2516(Lnet/minecraft/block/entity/StructureBlockBlockEntity$Action;)Z
-
parseLong
- Mappings:
Namespace Name Mixin selector official bLdxk;b(Ljava/lang/String;)Jintermediary method_2504Lnet/minecraft/class_497;method_2504(Ljava/lang/String;)Jnamed parseLongLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;parseLong(Ljava/lang/String;)J
-
parseFloat
- Mappings:
Namespace Name Mixin selector official cLdxk;c(Ljava/lang/String;)Fintermediary method_2500Lnet/minecraft/class_497;method_2500(Ljava/lang/String;)Fnamed parseFloatLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;parseFloat(Ljava/lang/String;)F
-
parseInt
- Mappings:
Namespace Name Mixin selector official dLdxk;d(Ljava/lang/String;)Iintermediary method_2517Lnet/minecraft/class_497;method_2517(Ljava/lang/String;)Inamed parseIntLnet/minecraft/client/gui/screen/ingame/StructureBlockScreen;parseInt(Ljava/lang/String;)I
-
onClose
public void onClose() -
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 inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- 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:
trueto 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 aLdst;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLdsq;a(Ldlr;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen- Mappings:
Namespace Name Mixin selector official aD_Ldve;aD_()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed isPauseScreenLnet/minecraft/client/gui/screen/Screen;isPauseScreen()Z
-