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:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user