@Environment(value=CLIENT) public class StructureBlockScreen extends Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
BACKGROUND_TEXTURE, GUI_ICONS_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() |
boolean |
isPauseScreen() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
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(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, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
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)
private void done()
private void cancel()
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)
keyPressed
in interface Element
keyPressed
in interface ParentElement
keyPressed
in class Screen
public void render(int mouseX, int mouseY, float delta)
public boolean isPauseScreen()
isPauseScreen
in class Screen