AbortableIterationConsumer .java

net.minecraft.util.AbortableIterationConsumer (interface, 16 lines): members: forConsumer, accept. ann: @FunctionalInterface.

net.minecraft.utilinterface16 linescommon334 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

AbortableIterationConsumer.java16 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util;
2
3
import java.util.function.Consumer;
4
5
@FunctionalInterface
6
public interface AbortableIterationConsumer<T> {
7
	Continuation accept(T entry);
8
9
	static <T> AbortableIterationConsumer<T> forConsumer(final Consumer<T> consumer) {
10
		return e -> {
11
			consumer.accept(e);
12
			return Continuation.CONTINUE;
13
		};
14
	}
15
}
16

Decompiled Minecraft 26.3 source of AbortableIterationConsumer (net/minecraft/util/AbortableIterationConsumer.java) with Mojang official mappings, stored verbatim on the site.