TheEndPortalBlockEntity .java

net.minecraft.world.level.block.entity.TheEndPortalBlockEntity (class, 20 lines): extends BlockEntity. members: shouldRenderFace. imports: Direction.

net.minecraft.world.level.block.entityclass20 linescommonextends BlockEntity690 B

API Surface (1)

boolean shouldRenderFace(final Direction direction)

Code Graph: Dependencies (5)

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

Full Source

TheEndPortalBlockEntity.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block.entity;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.core.Direction;
5
import net.minecraft.world.level.block.state.BlockState;
6
7
public class TheEndPortalBlockEntity extends BlockEntity {
8
	protected TheEndPortalBlockEntity(final BlockEntityType<?> type, final BlockPos worldPosition, final BlockState blockState) {
9
		super(type, worldPosition, blockState);
10
	}
11
12
	public TheEndPortalBlockEntity(final BlockPos worldPosition, final BlockState blockState) {
13
		this(BlockEntityTypes.END_PORTAL, worldPosition, blockState);
14
	}
15
16
	public boolean shouldRenderFace(final Direction direction) {
17
		return direction.getAxis() == Direction.Axis.Y;
18
	}
19
}
20

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