(BlockPos pos)
| 114 | } |
| 115 | |
| 116 | @Override |
| 117 | protected void mouseClicked(BlockPos pos) { |
| 118 | super.mouseClicked(pos); |
| 119 | |
| 120 | int xMin = (width - xSize) / 2; |
| 121 | int yMin = (height - ySize) / 2; |
| 122 | int xscreen = i - xMin; |
| 123 | int yscreen = j - yMin; |
| 124 | |
| 125 | if (xscreen >= TEXT_X && yscreen >= TEXT_Y |
| 126 | && xscreen <= TEXT_X + TEXT_WIDTH && yscreen <= TEXT_Y + TEXT_HEIGHT) { |
| 127 | textField.setFocused(true); |
| 128 | } else { |
| 129 | textField.setFocused(false); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | @Override |
| 134 | protected void keyTyped(char c, int i) { |
nothing calls this directly
no outgoing calls
no test coverage detected