Package net.minecraft.client.gui.screen
Class EditStructureScreen
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.FocusableGui
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.EditStructureScreen
-
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
public class EditStructureScreen extends Screen
-
-
Field Summary
-
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description EditStructureScreen(StructureBlockTileEntity p_i47142_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
init()
boolean
isPauseScreen()
boolean
keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
private void
onCancel()
void
onClose()
private void
onDone()
private int
parseCoordinate(java.lang.String p_189817_1_)
private float
parseIntegrity(java.lang.String p_189819_1_)
private long
parseSeed(java.lang.String p_189821_1_)
void
removed()
void
render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
void
resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
private boolean
sendToServer(StructureBlockTileEntity.UpdateCommand p_210143_1_)
void
tick()
private void
updateDirectionButtons()
private void
updateEntitiesButton()
private void
updateMirrorButton()
private void
updateMode()
private void
updateToggleAirButton()
private void
updateToggleBoundingBox()
-
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
-
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
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.IGuiEventListener
mouseMoved
-
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
Field Detail
-
NAME_LABEL
private static final ITextComponent NAME_LABEL
-
POSITION_LABEL
private static final ITextComponent POSITION_LABEL
-
SIZE_LABEL
private static final ITextComponent SIZE_LABEL
-
INTEGRITY_LABEL
private static final ITextComponent INTEGRITY_LABEL
-
CUSTOM_DATA_LABEL
private static final ITextComponent CUSTOM_DATA_LABEL
-
INCLUDE_ENTITIES_LABEL
private static final ITextComponent INCLUDE_ENTITIES_LABEL
-
DETECT_SIZE_LABEL
private static final ITextComponent DETECT_SIZE_LABEL
-
SHOW_AIR_LABEL
private static final ITextComponent SHOW_AIR_LABEL
-
SHOW_BOUNDING_BOX_LABEL
private static final ITextComponent SHOW_BOUNDING_BOX_LABEL
-
structure
private final StructureBlockTileEntity structure
-
initialMirror
private Mirror initialMirror
-
initialRotation
private Rotation initialRotation
-
initialMode
private StructureMode initialMode
-
initialEntityIgnoring
private boolean initialEntityIgnoring
-
initialShowAir
private boolean initialShowAir
-
initialShowBoundingBox
private boolean initialShowBoundingBox
-
nameEdit
private TextFieldWidget nameEdit
-
posXEdit
private TextFieldWidget posXEdit
-
posYEdit
private TextFieldWidget posYEdit
-
posZEdit
private TextFieldWidget posZEdit
-
sizeXEdit
private TextFieldWidget sizeXEdit
-
sizeYEdit
private TextFieldWidget sizeYEdit
-
sizeZEdit
private TextFieldWidget sizeZEdit
-
integrityEdit
private TextFieldWidget integrityEdit
-
seedEdit
private TextFieldWidget seedEdit
-
dataEdit
private TextFieldWidget dataEdit
-
doneButton
private Button doneButton
-
cancelButton
private Button cancelButton
-
saveButton
private Button saveButton
-
loadButton
private Button loadButton
-
rot0Button
private Button rot0Button
-
rot90Button
private Button rot90Button
-
rot180Button
private Button rot180Button
-
rot270Button
private Button rot270Button
-
modeButton
private Button modeButton
-
detectButton
private Button detectButton
-
entitiesButton
private Button entitiesButton
-
mirrorButton
private Button mirrorButton
-
toggleAirButton
private Button toggleAirButton
-
toggleBoundingBox
private Button toggleBoundingBox
-
decimalFormat
private final java.text.DecimalFormat decimalFormat
-
-
Constructor Detail
-
EditStructureScreen
public EditStructureScreen(StructureBlockTileEntity p_i47142_1_)
-
-
Method Detail
-
onDone
private void onDone()
-
onCancel
private void onCancel()
-
resize
public void resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
-
updateEntitiesButton
private void updateEntitiesButton()
-
updateToggleAirButton
private void updateToggleAirButton()
-
updateToggleBoundingBox
private void updateToggleBoundingBox()
-
updateMirrorButton
private void updateMirrorButton()
-
updateDirectionButtons
private void updateDirectionButtons()
-
updateMode
private void updateMode()
-
sendToServer
private boolean sendToServer(StructureBlockTileEntity.UpdateCommand p_210143_1_)
-
parseSeed
private long parseSeed(java.lang.String p_189821_1_)
-
parseIntegrity
private float parseIntegrity(java.lang.String p_189819_1_)
-
parseCoordinate
private int parseCoordinate(java.lang.String p_189817_1_)
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
- Specified by:
keyPressed
in interfaceIGuiEventListener
- Specified by:
keyPressed
in interfaceINestedGuiEventHandler
- Overrides:
keyPressed
in classScreen
-
render
public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
isPauseScreen
public boolean isPauseScreen()
- Overrides:
isPauseScreen
in classScreen
-
-