BlockEntityTicker .java

net.minecraft.world.level.block.entity.BlockEntityTicker (interface, 18 lines): members: andThen, tick. ann: @FunctionalInterface. imports: Level.

net.minecraft.world.level.block.entityinterface18 linescommonextends BlockEntity>573 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

BlockEntityTicker.java18 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block.entity;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.world.level.Level;
5
import net.minecraft.world.level.block.state.BlockState;
6
7
@FunctionalInterface
8
public interface BlockEntityTicker<T extends BlockEntity> {
9
	void tick(final Level level, final BlockPos pos, final BlockState state, final T entity);
10
11
	default BlockEntityTicker<T> andThen(final BlockEntityTicker<? super T> after) {
12
		return (level, pos, state, entity) -> {
13
			this.tick(level, pos, state, entity);
14
			after.tick(level, pos, state, entity);
15
		};
16
	}
17
}
18

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