mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2026-01-03 14:22:25 +00:00
添加允许液体流过的方块行为
This commit is contained in:
@@ -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
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user