Fallable .java

net.minecraft.world.level.block.Fallable (interface): members: getFallDamageSource, onLand, onBrokenAfterFall. imports: FallingBlockEntity, DamageSource.

net.minecraft.world.level.blockinterface21 linescommon748 B

API Surface (0)

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

Code Graph: Dependencies (6)

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

Full Source

Fallable.java21 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.world.damagesource.DamageSource;
5
import net.minecraft.world.entity.Entity;
6
import net.minecraft.world.entity.item.FallingBlockEntity;
7
import net.minecraft.world.level.Level;
8
import net.minecraft.world.level.block.state.BlockState;
9
10
public interface Fallable {
11
	default void onLand(final Level level, final BlockPos pos, final BlockState state, final BlockState replacedBlock, final FallingBlockEntity entity) {
12
	}
13
14
	default void onBrokenAfterFall(final Level level, final BlockPos pos, final FallingBlockEntity entity) {
15
	}
16
17
	default DamageSource getFallDamageSource(final Entity entity) {
18
		return entity.damageSources().fallingBlock(entity);
19
	}
20
}
21

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