MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / clean

Method clean

src/main/java/field/graphics/Window.java:1320–1342  ·  view source on GitHub ↗
(long window)

Source from the content-addressed store, hash-verified

1318 public Drop(String[] files, MouseState mouseState, KeyboardState keyboardState) {
1319 this.files = files;
1320 this.mouseState = mouseState;
1321 this.keyboardState = keyboardState;
1322 }
1323
1324 @Override
1325 public Optional<Vec2> position() {
1326 if (mouseState == null) return Optional.empty();
1327 return mouseState.position();
1328 }
1329 }
1330
1331 static public class Event<T> extends AsMapDelegator {
1332 public final T before;
1333 public final T after;
1334
1335 public final Dict properties = new Dict();
1336
1337 public Event(T before, T after) {
1338 this.before = before;
1339 this.after = after;
1340 }
1341
1342 public String toString() {
1343 return "ev<" + before + "->" + after + ">";
1344 }
1345

Callers 2

keyMethod · 0.95
characterMethod · 0.95

Calls 7

logMethod · 0.95
lookupMethod · 0.95
hasNextMethod · 0.65
nextMethod · 0.65
iteratorMethod · 0.45
removeMethod · 0.45
addAllMethod · 0.45

Tested by

no test coverage detected