SpawnPlacementType .java

net.minecraft.world.entity.SpawnPlacementType (interface, 14 lines): members: adjustSpawnPosition, isSpawnPositionOk. imports: LevelReader.

net.minecraft.world.entityinterface14 linescommon413 B

API Surface (0)

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

Code Graph: Dependencies (3)

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

Full Source

SpawnPlacementType.java14 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.world.level.LevelReader;
5
import org.jspecify.annotations.Nullable;
6
7
public interface SpawnPlacementType {
8
	boolean isSpawnPositionOk(LevelReader level, BlockPos blockPos, @Nullable EntityType<?> type);
9
10
	default BlockPos adjustSpawnPosition(final LevelReader level, final BlockPos candidate) {
11
		return candidate;
12
	}
13
}
14

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