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

Method autoConstructs

src/main/java/field/utility/Dict.java:305–320  ·  view source on GitHub ↗
(Supplier<T> t)

Source from the content-addressed store, hash-verified

303 }
304
305 public <T> Prop<T> autoConstructs(Supplier<T> t) {
306 Prop on = this;
307 if (!isCanon()) {
308 Prop<T> already = (Prop<T>) findCanon();
309 if (already == null) {
310 toCanon();
311 on.setCanon();
312 } else {
313 on = already;
314 }
315 }
316
317
318 on.autoConstructor = (Supplier) t;
319 return (Prop<T>) on;
320 }
321
322
323 public List<Class> getTypeInformation() {

Callers 15

KeyboardClass · 0.80
MarkingMenusClass · 0.80
FLineDrawingClass · 0.80
FLineInteractionClass · 0.80
BoxesClass · 0.80
CallbacksClass · 0.80
MouseClass · 0.80
DropsClass · 0.80
MeshesClass · 0.80
KeyboardShortcutsClass · 0.80
VariantClass · 0.80
SimpleTweaksClass · 0.80

Calls 4

isCanonMethod · 0.95
findCanonMethod · 0.95
toCanonMethod · 0.95
setCanonMethod · 0.95

Tested by

no test coverage detected