so here's the issue at hand. I've made a tile entity that uses the block pattern interface to check if the multiblock that it's part of is complete/valid.
I have it set up so that it checks the structure of the neighbor is changed. but my issue is this
@Override
public void neighborChanged(final BlockState pState, final Level pLevel, final BlockPos pPos, final Block pBlock, final BlockPos pFromPos, final boolean pIsMoving) {
super.neighborChanged(pState, pLevel, pPos, pBlock, pFromPos, pIsMoving);
if(pLevel.getBlockEntity(pPos) instanceof ScannerTileEntity scannerTile)
{
//CodeLyokoMain.Log.info("check");
if(!pLevel.isClientSide()) {
scannerTile.check();
}
//if(level.getBlockState(pos.above().above()).getBlock() == ModBlocks.SCANNER_TOP.get())
//{
// scannerTile.check();
//}
}
}
it only checks the block RIGHT next to it in all directions
what I want is to check is a radius if any block has changed in these states, but I am unsure how to check that.
one of the thoughts I've had is to call the super again but change the pFromPos to pFromPos.above()