@Environment(value=CLIENT) public class JigsawBlockScreen extends Screen
Modifier and Type | Field and Description |
---|---|
private ButtonWidget |
doneButton |
private TextFieldWidget |
finalStateField |
private int |
generationDepth |
private JigsawBlockEntity |
jigsaw |
private JigsawBlockEntity.Joint |
joint |
private ButtonWidget |
jointRotationButton |
private TextFieldWidget |
nameField |
private TextFieldWidget |
poolField |
private TextFieldWidget |
targetField |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
JigsawBlockScreen(JigsawBlockEntity jigsaw) |
Modifier and Type | Method and Description |
---|---|
private void |
generate() |
private String |
getLocalizedJointName() |
protected void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
private void |
onCancel() |
void |
onClose() |
private void |
onDone() |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
void |
resize(MinecraftClient client,
int width,
int height) |
void |
tick() |
private void |
updateDoneButtonState() |
private void |
updateServer() |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, 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 JigsawBlockEntity jigsaw
private TextFieldWidget nameField
private TextFieldWidget targetField
private TextFieldWidget poolField
private TextFieldWidget finalStateField
private int generationDepth
private ButtonWidget jointRotationButton
private ButtonWidget doneButton
private JigsawBlockEntity.Joint joint
public JigsawBlockScreen(JigsawBlockEntity jigsaw)
private void onDone()
private void onCancel()
private void updateServer()
private void generate()
private void updateDoneButtonState()
public void resize(MinecraftClient client, int width, int height)
private String getLocalizedJointName()
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
keyPressed
in interface Element
keyPressed
in interface ParentElement
keyPressed
in class Screen