9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-04 15:41:38 +00:00

Added container and analog

This commit is contained in:
Arubik
2025-08-26 11:32:40 -05:00
parent cd2f13a01a
commit bb79b621c3
4 changed files with 198 additions and 65 deletions

View File

@@ -85,6 +85,21 @@ public abstract class BlockBehavior {
return false;
}
//BlockState state
public boolean hasAnalogOutputSignal(Object thisBlock, Object[] args) throws Exception {
return false;
}
//BlockState state Level level BlockPos pos
public int getAnalogOutputSignal(Object thisBlock, Object[] args) throws Exception {
return 0;
}
// BlockState state, LevelReader world, BlockPos pos
public Object getContainer(Object thisBlock, Object[] args) throws Exception {
return null;
}
// Level level, RandomSource random, BlockPos pos, BlockState state
public boolean isBoneMealSuccess(Object thisBlock, Object[] args) throws Exception {
return false;
@@ -186,4 +201,4 @@ public abstract class BlockBehavior {
}
public abstract CustomBlock block();
}
}