@Environment(value=CLIENT) public class StructureBlockScreen extends Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
StructureBlockScreen(StructureBlockBlockEntity structureBlock) |
Modifier and Type | Method and Description |
---|---|
private void |
cancel() |
private void |
done() |
protected void |
init()
Called when a screen should be initialized.
|
boolean |
isPauseScreen() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers)
Callback for when a key down event has been captured.
|
private boolean |
method_2516(StructureBlockBlockEntity.Action action) |
void |
onClose() |
private float |
parseFloat(String string) |
private int |
parseInt(String string) |
private long |
parseLong(String string) |
void |
removed() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
resize(MinecraftClient client,
int width,
int height) |
void |
tick() |
private void |
updateIgnoreEntitiesButton() |
private void |
updateMirrorButton() |
private void |
updateMode() |
private void |
updateRotationButton() |
private void |
updateShowAirButton() |
private void |
updateShowBoundingBoxButton() |
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, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Text field_26572
private static final Text field_26573
private static final Text field_26574
private static final Text field_26575
private static final Text field_26576
private static final Text field_26577
private static final Text field_26578
private static final Text field_26579
private static final Text field_26580
private final StructureBlockBlockEntity structureBlock
private BlockMirror mirror
private BlockRotation rotation
private StructureBlockMode mode
private boolean ignoreEntities
private boolean showAir
private boolean showBoundingBox
private TextFieldWidget inputName
private TextFieldWidget inputPosX
private TextFieldWidget inputPosY
private TextFieldWidget inputPosZ
private TextFieldWidget inputSizeX
private TextFieldWidget inputSizeY
private TextFieldWidget inputSizeZ
private TextFieldWidget inputIntegrity
private TextFieldWidget inputSeed
private TextFieldWidget inputMetadata
private ButtonWidget buttonDone
private ButtonWidget buttonCancel
private ButtonWidget buttonSave
private ButtonWidget buttonLoad
private ButtonWidget buttonRotate0
private ButtonWidget buttonRotate90
private ButtonWidget buttonRotate180
private ButtonWidget buttonRotate270
private ButtonWidget buttonMode
private ButtonWidget buttonDetect
private ButtonWidget buttonEntities
private ButtonWidget buttonMirror
private ButtonWidget buttonShowAir
private ButtonWidget buttonShowBoundingBox
private final DecimalFormat decimalFormat
public StructureBlockScreen(StructureBlockBlockEntity structureBlock)
public void tick()
tick
in interface TickableElement
tick
in class Screen
private void done()
private void cancel()
protected void init()
This method is called when this screen is opened
or resized.
public void resize(MinecraftClient client, int width, int height)
private void updateIgnoreEntitiesButton()
private void updateShowAirButton()
private void updateShowBoundingBoxButton()
private void updateMirrorButton()
private void updateRotationButton()
private void updateMode()
private boolean method_2516(StructureBlockBlockEntity.Action action)
private long parseLong(String string)
private float parseFloat(String string)
private int parseInt(String string)
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
GLFW
class.keyPressed
in interface Element
keyPressed
in interface ParentElement
keyPressed
in class Screen
keyCode
- the named key code of the event as described in the GLFW
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)true
to indicate that the event handling is successful/validKeyboard.onKey(long, int, int, int, int)
,
GLFW.GLFW_KEY_Q
,
GLFWKeyCallbackI.invoke(long, int, int, int, int)
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
public boolean isPauseScreen()
isPauseScreen
in class Screen