MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / mouseClicked

Method mouseClicked

tests/buildcraft/tests/GuiTester.java:116–131  ·  view source on GitHub ↗
(BlockPos pos)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected