Add an API Helper to ChestGUI to allow inplace updating of the stack that was clicked.
This commit is contained in:
parent
95405f9e5a
commit
c6954add09
7 changed files with 68 additions and 19 deletions
|
@ -26,6 +26,8 @@ public abstract class BlockImitation extends Block
|
|||
|
||||
public abstract BlockState getImitatedBlockState(BlockGetter level, BlockPos pos);
|
||||
|
||||
public abstract void updateImitation(BlockState newState, BlockGetter level, BlockPos pos);
|
||||
|
||||
@Override
|
||||
public void animateTick(BlockState blockState, Level level, BlockPos pos, RandomSource random) {
|
||||
BlockState imitatedBlockState = getImitatedBlockState(level, pos);
|
||||
|
|
Reference in a new issue