PostSpawnProcessor .java

net.minecraft.world.entity.PostSpawnProcessor (interface, 20 lines): interface declaring 3 methods. members: nop, andThen, apply.

net.minecraft.world.entityinterface20 linescommonextends Entity>406 B

API Surface (0)

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

Full Source

PostSpawnProcessor.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity;
2
3
import java.util.Objects;
4
5
public interface PostSpawnProcessor<T extends Entity> {
6
	void apply(T target);
7
8
	default PostSpawnProcessor<T> andThen(final PostSpawnProcessor<? super T> after) {
9
		Objects.requireNonNull(after);
10
		return t -> {
11
			this.apply(t);
12
			after.apply(t);
13
		};
14
	}
15
16
	static <T extends Entity> PostSpawnProcessor<T> nop() {
17
		return var0 -> {};
18
	}
19
}
20

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