I want to add my custom portal block, and when I look into NetherPortalBlock and EndPortalBlock, I mentioned the line in EnderPortalBlock:
Shapes.joinIsNotEmpty(Shapes.create(paramEntity.getBoundingBox().move(-paramBlockPos.getX(), -paramBlockPos.getY(), -paramBlockPos.getZ())), paramBlockState.getShape((BlockGetter)paramLevel, paramBlockPos), BooleanOp.AND)
which does not exist in NetherPortalBlock.entityInside method.
What does the code do? And do I need to add this line to my custom portal block?