9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 09:59:20 +00:00

feat(core): 添加监听onRemove内部事件

This commit is contained in:
jhqwqmc
2025-07-13 15:12:08 +08:00
parent 3ce1917df5
commit cf2fa2b333

View File

@@ -123,6 +123,7 @@ public abstract class BlockBehavior {
public void affectNeighborsAfterRemoval(Object thisBlock, Object[] args, Callable<Object> superMethod) throws Exception {
}
// 1.20~1.21.4 BlockState state, Level level, BlockPos pos, BlockState newState, boolean movedByPiston
public void onRemove(Object thisBlock, Object[] args, Callable<Object> superMethod) throws Exception {
}