2025-11-24 22:52:51 +03:00

25 lines
777 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.world.level.block;
import net.minecraft.core.BlockPos;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.item.FallingBlockEntity;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.state.BlockState;
public interface Fallable {
default public void onLand(Level level, BlockPos pos, BlockState state, BlockState replacedBlock, FallingBlockEntity entity) {
}
default public void onBrokenAfterFall(Level level, BlockPos pos, FallingBlockEntity entity) {
}
default public DamageSource getFallDamageSource(Entity entity) {
return entity.damageSources().fallingBlock(entity);
}
}