Portal .java

net.minecraft.world.level.block.Portal (interface, 25 lines): members: Transition, getPortalTransitionTime, getLocalTransition, getPortalDestination.

net.minecraft.world.level.blockinterface25 linescommon666 B

API Surface (0)

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

Code Graph: Dependencies (4)

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

Full Source

Portal.java25 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.server.level.ServerLevel;
5
import net.minecraft.world.entity.Entity;
6
import net.minecraft.world.level.portal.TeleportTransition;
7
import org.jspecify.annotations.Nullable;
8
9
public interface Portal {
10
	default int getPortalTransitionTime(final ServerLevel level, final Entity entity) {
11
		return 0;
12
	}
13
14
	@Nullable TeleportTransition getPortalDestination(final ServerLevel currentLevel, final Entity entity, final BlockPos portalEntryPos);
15
16
	default Portal.Transition getLocalTransition() {
17
		return Portal.Transition.NONE;
18
	}
19
20
	enum Transition {
21
		CONFUSION,
22
		NONE;
23
	}
24
}
25

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