9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-03 14:22:25 +00:00

添加允许液体流过的方块行为

This commit is contained in:
XiaoMoMi
2025-09-14 04:34:04 +08:00
parent 94c02f6b7b
commit d6f3ff4725
11 changed files with 105 additions and 20 deletions

View File

@@ -2,7 +2,7 @@ package net.momirealms.craftengine.core.block.behavior.special;
import java.util.concurrent.Callable;
public interface TriggerOnceBlockBehavior {
public interface FallOnBlockBehavior {
// 1.20.1~1.21.4 Level world, BlockState state, BlockPos pos, Entity entity, float fallDistance
// 1.21.5+ Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance

View File

@@ -0,0 +1,10 @@
package net.momirealms.craftengine.core.block.behavior.special;
import java.util.concurrent.Callable;
public interface PlaceLiquidBlockBehavior {
boolean placeLiquid(Object thisBlock, Object[] args, Callable<Object> superMethod);
boolean canPlaceLiquid(Object thisBlock, Object[] args, Callable<Object> superMethod);
}