Add an API Helper to ChestGUI to allow inplace updating of the stack that was clicked.

This commit is contained in:
zontreck 2024-01-14 19:11:38 -07:00
parent 95405f9e5a
commit c6954add09
7 changed files with 68 additions and 19 deletions

View file

@ -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);